Stop task from CLI
When a scheduler task is marked as running, the
-f CLI parameter does not actually run the task but skips it.
During development, it's often necessary to stop the script during a run, leaving the scheduler task in the "running" state, without a way to reset it on CLI. You always have to use the browser-based backen.
It would be helpful if there was a way to stop a running task via CLI.
[FEATURE] Refactoring of scheduler CLI
Refactoring of scheduler CLI. Move the biggest part of the old
scheduler_cli_dispatch.php to an own controller. Add a new parameter "s"
to stop a running scheduler task.
Reviewed-by: Wouter Wolters <firstname.lastname@example.org>
Tested-by: Wouter Wolters <email@example.com>
Reviewed-by: Jan Helke <firstname.lastname@example.org>
Tested-by: Jan Helke <email@example.com>
Reviewed-by: Anja Leichsenring <firstname.lastname@example.org>
Tested-by: Anja Leichsenring <email@example.com>