Google App Engine: task_retry_limit doesn't work?

前端 未结 3 1190
情歌与酒
情歌与酒 2020-12-10 04:34

I have a Python GAE app.

I want my tasks to stop running or just retry once if they fail. Right now, they run forever despite what my yaml file is telling them!

3条回答
  •  既然无缘
    2020-12-10 05:15

    I had the same problem, strangely it seems to start working fine after I left it as is for few hours... Perhaps there is some time needed for GAE to refresh??

    Anyway, the settings worked for me are:

    # configure the default queue
    - name: default
      rate: 1/s
      retry_parameters:
        # task will stop retrying ONLY when BOTH LIMITS ARE REACHED
        task_retry_limit: 1
        task_age_limit: 1s
    

提交回复
热议问题