-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.3
-
Fix Version/s: 3.3
-
Component/s: Tasks
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_33_STABLE
-
Fixed Branches:MOODLE_33_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-55980-master -
Pull Master Diff URL:
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 been marked as being related by
-
MDL-53110 Consider deprecating step "And I trigger cron"
-
- Open
-
-
MDL-59487 Re-run a scheduled task from the web
-
- Waiting for integration review
-
-
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
-