I have an App Engine app and I had some App Engine cron jobs in it which was taking longer than 10minutes and hence failing(due to the limitation of App Engine cron job max time being 10min).
I decided to move it to Cloud Scheduler and created a job with App Engine HTTP
target with below parameters. (attempt-deadline is the parameter where I tried to increase the time)
gcloud beta scheduler jobs create app-engine daily-import --schedule="0 */3 * * 1" --attempt-deadline=21600s --version="test-v1" --http-method="GET" --description="Daily Import" --relative-url="/api/test"
But I am surprised to say that the job still fails after 10min with an error message popping up in logger as
"Process terminated because the request deadline was exceeded. Please ensure that your HTTP server is listening for requests on 0.0.0.0 and on the port defined by the PORT environment variable. (Error code 123)"
Please note that the end point is working(the required code is being executed but failing in between due to deadline).
As per the scheduler doc The allowed duration for App Engine HTTP targets is in between 15 seconds and 24 hours.
Has anyone ever faced a similar issue? What could be the possible solution?