Supposing I have two cron jobs in my app which run at the same time:

- description: purge old articles
  url: /purge
  schedule: every 12 hours

- description: parse comp apps
  url: /comp
  schedule: every 12 hours

Do they run simultaneously within the GAE runtime? Or are they done sequentially -- if so, then in what order? If they do run sequentially, would I have to use task queues in order to simulate simultaneous tasks (since, as far as I am aware, multithreading is not possible in app engine)?

有帮助吗?

解决方案

Cron jobs run independently of each other. Therefore, there is no guarantee that they will run either sequentially or simultaneously.

If you want two tasks to be executed either sequentially or simultaneously, put them in the same cron job - there is no reason to create two cron jobs in this case.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top