cron
Here are 1,118 public repositories matching this topic...
使用的elastic-job版本:2.1.1。
我的一个定时任务为通过 http 方式(使用 OKHttp 发送 http 请求)执行某个方法(例如:http://ip:port/myapp/synFundData)。
当调用上述接口时如果服务器返回504(后台执行时间太长导致超时),请问该定时任务是否会自动重试?因为我从 Nginx 的日志中发现:每隔30秒Nginx 会收到一个同样的http请求,且返回的状态码都是 504,日志如下:
...remote_user=- [16/Nov/2017:08:40:01 +0800] request="GET /xxx/synFundData HTTP/1.1" status=504
...remote_user=- [16/Nov/2017:08:40:31 +0800] request="GET /xxx/synFun
It's not quite clear reading the chronos doc:
https://mesos.github.io/chronos/docs/api.html#adding-a-docker-job
Mesos 0.22.0 added support for forcibly pulling the latest version of your Docker image before launching the task, and this behavior can be enabled in Chronos by adding the
forcePullImageboolean to yourcontainerconfiguration.Chronos will default to not doing a `docker pu
Hi,
I read the documentation a few times and it took me some time to realise how to register multiple triggers for one job. Perhaps I didn't understand the documentation but it was only when I looked at the overloads of ScheduleJob that I noticed it accepts an IReadOnlyCollection<ITrigger>.
Would it be possible to update or add a section in one of the relevant chapters with a snippet suc
The timezone would be used for formatting dates by default (in places where we currently use browser's timezone).
The timezone would also be selected by default when configuring cron schedules (as requested in #291)
-
Updated
May 25, 2020 - Go
-
Updated
Mar 27, 2020 - Ruby
-
Updated
Sep 11, 2019 - Go
Guys complete your documentation with support time zones. I just had to dig inside the library to find it all. Thanks also for writing it for us.
Documentation
It would be nice if schedule:list had an optional flag to show the parameters. This makes debugging a little easier, without needing to login to the web frontend.
Something like #disable_all! will be useful for development environment, so you don't need to modify each worker to add a guard.
-
Updated
Apr 13, 2020 - Go
So I just ran into an issue where I was calling a procedure that made use of transaction control internally. Here is a simple example:
create procedure t() language plpgsql as $$ begin perform 1; commit; perform 1; end; $$;
select cron.schedule('* * * * *', 'call t(); select 1;');This blew up with the following in the logs:
2019-10-07 15:04:00.000 UTC [11839] LOG: cron
-
Updated
May 13, 2020 - JavaScript
-
Updated
Apr 28, 2020 - HTML
Summary
Hello,
It looks like there exists a rather convenient API call for getting the plugins list
http://MASTER_SERVER:PORT/api/app/get_categories/get_plugins/v1/?api_key=<>
Would it be possible to have it documented too in future?
-
Updated
May 26, 2020 - JavaScript
I need something like below:
newCronExpression = convert (localCronExpresn,fromLocalTZ, "UTC")
Is it possible using cron-utils?
Let me give an example:
My local timezone is IST i.e. GMT+5.30.
Current local time is: 11:20 AM.
I want a job to run in 45 min of every hour.
So, my cron expression: 45 * * * *
Hence I am expecting my job to run after 25 min ( as starting time
An useful feature is about clicking on the job and seeing the job history. It shows only the previous execution
-
Updated
May 22, 2020 - C#
-
Updated
Apr 18, 2020 - Ruby
What do the following startTime and endTime configurations do, there are no associated API docs?
@Cron('0 0 2 * *', {
startTime: new Date(),
endTime: new Date(new Date().getTime() + 24 * 60 * 60 * 1000),
})
We can already set the scheduled interval with cron.
Improve this page
Add a description, image, and links to the cron topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the cron topic, visit your repo's landing page and select "manage topics."


On my team, we've been implementing error handling in agenda jobs in one of two ways:
job.fail(err); job.save(), returnAfter looking at the job processing code for the
runmethod, I confirmed the two approaches were equivalent.While