Issue Bug Closed

#64636New Scheduler Task could not be executed

Roman Schürmann 01/30/15, 13:55 updated 10/02/18, 11:46

Description

If you create a new scheduler task, it will not be executed.
The flash message say: Task not executed and the log entry says:
[scheduler]: Task is already running and multiple executions are not allowed, skipping! Class: TYPO3\CMS\Scheduler\Example\TestTask….

Reason is:
If a new task is created the field ‘serialized_executions’ in tx_scheduler_task is set to NULL
Every time time you want to execute the task manually or it is fired by cron the scheduler checks, if a task is already running. The check only looks for an empty string in this field and therefore the check returns true, because it was set to NULL at creation.
After the first run, the filed is set to an empty string and all succeeding checks will work.

Solution:
Modify the check for ‘is the task already running’

Reviews 1