Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.0
-
Fix Version/s: 3.1
-
Component/s: Tasks
-
Labels:
-
Testing Instructions:
- Create a task in code
- Set the nextruntime to a date in future
- Run cron every minute until the task is executed
- See that the task run in the future and not first time cron is executed
-
Affected Branches:MOODLE_30_STABLE
-
Fixed Branches:MOODLE_31_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-52385-master -
Pull Master Diff URL:
Description
This allows to queue a task to run some time in future instead of running it right now.
It was discussed at:
https://moodle.org/mod/forum/discuss.php?d=323674
With this, you may choose to schedule a test to run when you really need (or the chances that you need at that time are higher) instead of periodically like what was done for MDL-51647.