开发者

Is it possible to start a timer in google app engine?

开发者 https://www.devze.com 2023-02-07 11:22 出处:网络
For instance, check a status every 30 seconds or poll a web service periodic开发者_Python百科ally ?App Engine Cron Service allows you to configure regularly scheduled tasks that operate at defined tim

For instance, check a status every 30 seconds or poll a web service periodic开发者_Python百科ally ?


App Engine Cron Service allows you to configure regularly scheduled tasks that operate at defined times or regular intervals

A cron.yaml file in the root directory of your application (alongside app.yaml) configures scheduled tasks for your Python application.
For example:

- description: Webservice polling
  url: /tasks/pollawebservice
  schedule: every 30 minutes

The url field specifies a URL in your application that will be invoked by the Cron Service.


Yes, you can use the task queue. A task can be configured to run at custom intervals and can perform pretty much any action.

0

精彩评论

暂无评论...
验证码 换一张
取 消