为什么Google Cloud Scheduler不尊重dundeDeadline
我创建了一个HTTP Cloud Scheduler任务。我希望它的最长运行时间为5分钟。但是,我的任务是 deadline_exceeded 完全1分钟。
当我运行 gcloud调度程序作业时,请描述mysynctask
查看我的任务,它报告了 trimdeadline:300S
。我正在调用的服务是云运行,我还设置了300s限制。
我正在通过单击GUI中的“强制工作”来手动运行任务。
完全在日志中1分钟后,它报告了deadline_exceeded
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您执行作业默认
tribdeadline
值,根据此问题。如果您想手动运行它,我建议您从并通过
- 代码>
带有所需值的标志,如此答案:
When you execute a job from the GUI, it will be executed using the default
attemptDeadline
value, which is 60 seconds according to this question.If you want to run it manually, I suggest to run the job from the Cloud Shell and pass the
--attempt-deadline
flag with the desired value, as shown on this answer: