Skip to content
#

job

Here are 414 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

Improve this page

Add a description, image, and links to the job 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 job topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.