-
Improvement
-
Resolution: Fixed
-
Minor
-
3.3
-
MOODLE_33_STABLE
-
MOODLE_33_STABLE
-
MDL-55980-master -
This came up in discussions on MDL-53110 and MDL-55117, separating from these issues because it's not about behat any more.
This is a proposal to allow executing individual scheduled tasks from web interface. We already have the CLI command for it:
php admin/tool/task/cli/schedule_task.php --execute=\\some\\task
|
This issue suggests to add a web version:
http://yourmoodlesite/admin/cron.php?task=\some\task
|
Discussion on security of this call can be found on MDL-53110, the summary is:
- this call will ignore next run time and execute given scheduled task always (without any other tasks)
- display a link in the scheduled tasks overview page for each task: "Run now"
- require user requesting the page to be logged in and have appropriate capability
- ignore cronclionly and cronremotepassword but require session key
(If run inside behat test - do not require capabilities and sesskey)
P.S. If it's easier to implement, this can be new script /admin/schedule_task.php and not /admin/cron.php
- caused a regression
-
MDL-59096 Web running of scheduled tasks is not possible in local plugins
- Closed
- has a non-specific relationship to
-
MDL-67994 Behat: running scheduled tasks in the admin task UI runs them on the real site, not the behat site
- Open
- has a QA test
-
MDLQA-12281 An administrator can set a Path to PHP CLI and run scheduled tasks via the UI
- Open
-
MDLQA-15360 CLONE - An administrator can set a Path to PHP CLI and run scheduled tasks via the UI
- Passed
-
MDLQA-15949 CLONE - An administrator can set a Path to PHP CLI and run scheduled tasks via the UI
- Passed
-
MDLQA-16593 CLONE - An administrator can set a Path to PHP CLI and run scheduled tasks via the UI
- Passed
-
MDLQA-17209 CLONE - An administrator can set a Path to PHP CLI and run scheduled tasks via the UI
- Passed
-
MDLQA-17797 CLONE - An administrator can set a Path to PHP CLI and run scheduled tasks via the UI
- Passed
-
MDLQA-18301 CLONE - An administrator can set a Path to PHP CLI and run scheduled tasks via the UI
- Passed
-
MDLQA-18793 CLONE - An administrator can set a Path to PHP CLI and run scheduled tasks via the UI
- Passed
-
MDLQA-19256 CLONE - An administrator can set a Path to PHP CLI and run scheduled tasks via the UI
- Passed
- has been marked as being related by
-
MDL-53110 Consider deprecating step "And I trigger cron"
- Closed
-
MDL-59487 Re-run a scheduled task from the web
- Closed
-
MDLQA-10384 An admin can run individual scheduled tasks via the UI
- Open
- Testing discovered
-
MDL-58177 Refactor scheduled task gui to use NO_OUTPUT_BUFFERING
- Closed