Google Cloud App.yaml Cron.yaml For Python Script Not Working But No Log
I'm trying to use Google cloud's cron to run my Python script at a time interval. I followed instructions from https://cloud.google.com/appengine/docs/standard/python/config/cron t
Solution 1:
You can't run a plain python script like your scraper.py
directly from the GAE cron, at least not with its current content.
You need a basic GAE app skeleton in there, with a handler for the cron job's URL. Remember that the GAE cron job is simply a GET request for that URL, which your app needs to handle. That handler is where you'd place the code you want to be executed.
You can find a sample skeleton in the Hello World code review.
Post a Comment for "Google Cloud App.yaml Cron.yaml For Python Script Not Working But No Log"