appengine icon indicating copy to clipboard operation
appengine copied to clipboard

Task queues stopped running

Open faisalraja opened this issue 2 years ago • 4 comments

Tasks are still added but it never executes anymore. I have tried default and true options for enable_task_running. I can sometimes make it work very rarely after several restarts and then after running a single task it never runs any new ones. Even after hitting run in the console it still doesn't execute. Thanks

Here are versions of what is installed: Google Cloud SDK 377.0.0 app-engine-go 1.9.72 app-engine-python 1.9.99

faisalraja avatar Mar 22 '22 16:03 faisalraja

Is this in dev_appserver.py or in prod?

If the former: Does the code change in #279 help with your problem?

bsiegert avatar Mar 23 '22 19:03 bsiegert

@bsiegert This is for dev_appserver.py these are for both delay and taskqueue.NewPOSTTask then taskqueue.Add and the delay function. I did notice that error for the delay function but for direct taskqueue there's no error. Just doesn't get executed. Even after hitting "Run" in the admin console. After few stop/starts it can sometimes work once then won't work anymore after the first one.

faisalraja avatar Mar 23 '22 21:03 faisalraja

I had exactly the same problem. See the patch in #279 and the App Engine SDK bug report liked from there.

bsiegert avatar Mar 24 '22 09:03 bsiegert

@bsiegert I saw it, but it only touches the delay.go. Is this because once that error has been triggered the dev_appserver.py stops doing processes? I'm assuming it is based on your response. Thanks!

faisalraja avatar Mar 24 '22 13:03 faisalraja

I observe this issue (delay Function fails to execute) using appengine/v2 as well. Looks like @bsiegert is correct about gob vs base64 encoding, as POST to delay queue returns 500 (Internal server error).

Has anyone found a workaround? Could we fix this please? Thanks.

sudhagarc avatar Apr 23 '23 13:04 sudhagarc