GAE Python - How to set a cron job to launch a backend task

前端 未结 2 1205
予麋鹿
予麋鹿 2021-01-06 23:42

I\'m running a daily reporting task on GAE which since recently is using too much memory to finish. Therefore I\'d like to set it as a backend task. I\'ve set the backend as

2条回答
  •  青春惊慌失措
    2021-01-07 00:08

    An easier way to do this is by migrating the app to modules. Explained here: https://developers.google.com/appengine/docs/python/modules/

    After doing so, you can just add following line in the cron.yaml:

    target: yourmodule
    

    This allows the cron job to run on the instance defined in yourmodule.yaml

提交回复
热议问题