Reputation: 93
When I try to execute a task in cron job, it fails. On checking it I came to know that the request method sent via cron is a GET but in my API for that endpoint I have configured it as a DELETE. So is it possible to configure the request method type in cron.xml.
Upvotes: 1
Views: 536
Reputation: 1882
It is not possible to configure the HTTP verb in App Engine Cron Jobs[1]
As @guillaume blaquiere indicated, the best solution would be to use Cloud Scheduler [2].
gcloud scheduler jobs create http JOB --schedule=SCHEDULE --uri=URI --http-method=delete [optional flags]
Upvotes: 1