Setting up cron job in google app engine python

后端 未结 3 1684
别跟我提以往
别跟我提以往 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 15:02

    The url is used to run the py script for your cron job

    basically in your app.yaml

    you have

    app.yaml
    handlers:
    - url: /helloworld.py
      script: helloworld.py
    

    in cron.yaml

    cron.yaml
    - description: scrape xml
      url: /helloworld.py
      schedule: every 10 minutes
    

    if you want the cron to run hello world you have to set the url as url: /helloworld.py

提交回复
热议问题