Setting up cron job in google app engine python

后端 未结 3 1677
别跟我提以往
别跟我提以往 2021-02-06 14:12

I\'m just getting started with Google App Engine so I\'m still learning how to configure everything. I wrote a script called parsexml.py that I want to run every 10 minutes or s

3条回答
  •  半阙折子戏
    2021-02-06 14:45

    In GAE, all actions are done via URLs. You can't just run an arbitrary script as a cron: you need to make that script a handler and give it a URL, like any other view in your project.

    So, map a URL to your script in app.yaml, edit the script to make it a handler, and use that URL in cron.yaml.

提交回复
热议问题