How to schedule repeated jobs or tasks from user parameters in Google App Engine?

前端 未结 2 2051
猫巷女王i
猫巷女王i 2020-12-19 20:00

I\'m using Google App Engine and I want like to be able to schedule jobs based users\' parameters.

I know this can be done with cron jobs, but looks like it does not

2条回答
  •  天涯浪人
    2020-12-19 20:38

    You may want to star Issue 3638: Cron jobs to be scheduled programatically

    Meanwhile you can write your own implementation: have a generic cron job running periodically (every 1 minute being the finest resolution) and inside that cron job check user-programmed scheduling data persisted somewhere (in the datastore for example) and, if needed, trigger execution of whatever is needed to be executed, either inlined or by enqueueing a task in some task queue.

    It's possible to drive the scheduling resolution even under 1 minute, if needed, see High frequency data refresh with Google App Engine

提交回复
热议问题