【发布时间】:2018-04-21 12:48:05
【问题描述】:
我正在使用 google 任务队列,并且正在队列上设置 task_retry_limit。
默认行为是在以下情况下将任务从任务队列中删除:
1) when the task is executed successfully or
2) when the task reaches the maximum number of retry attempts set.
在我的用例中,我对第二种情况有疑问。即使重试次数达到上限,我也想将任务保留在任务队列中
(我不想在 task_retry_limit 之后重试该任务,但我想将其保留在任务队列中,以便稍后手动运行它) p>
Queue.yaml 中是否有参数驱动这个?
我知道解决此问题的方法是设置适度的 task_age_limit,但我不希望任务继续重试。
【问题讨论】:
标签: python-2.7 google-app-engine task-queue google-tasks