Lets say I have two cronjobs:
<vendor_module_task1> <schedule><cron_expr>0,10,20,30,40,50 * * * *</cron_expr></schedule> <run><model>sometask</model></run> </vendor_module_task1> <vendor_module_task2> <schedule><cron_expr>9,19,29,39,49,59 * * * *</cron_expr></schedule> <run><model>sometask</model></run> </vendor_module_task2>
If the cron runs every minute, its obvious that the buttom task will always execute one minute before the first task (or 9 minutes after, depends on perspective..)
However, some magento sites are configured to run cron every 5 minutes or more, instead of every minute. On those systems those two tasks will run together, which is fine, but I want to make sure they maintain their original order.
So my questions:
- Am I guaranteed that the bottom task will execute before the top task, even if cron is every 5 minutes?
- Am I guaranteed that the latter task will only start executing after the first task is done, and not simultaneously (provided it doesn't use any async calls)?
On my system it seems to be the case, but I want to make sure its the defined behavior and not just by luck.