The Wayback Machine - https://web.archive.org/web/20200526145347/https://github.com/topics/cron
Skip to content
#

cron

Here are 1,118 public repositories matching this topic...

agenda
IcyLemon
IcyLemon commented Nov 16, 2017

使用的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

daluu
daluu commented Oct 13, 2016

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 forcePullImage boolean to your container configuration.

Chronos will default to not doing a `docker pu

lloydjatkinson
lloydjatkinson commented Oct 21, 2019

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

pope1ni
pope1ni commented Oct 7, 2019

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 
alexpanas
alexpanas commented Jan 2, 2020

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?

jmrozanec
jmrozanec commented Oct 5, 2017

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

Improve this page

Add a description, image, and links to the cron topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the cron topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.