Bug #86420
closed
Scheduler executes deleted tasks
Added by Alexander Opitz about 6 years ago.
Updated about 6 years ago.
Description
Since #79777 tasks do not get removed from database, but marked as deleted.
But the function "fetchTask($uid = 0)" in the Scheduler class wasn't updated accordingly. This function builds an own SQL with QueryBuilder with "$queryBuilder->getRestrictions()->removeAll();" so we also fetch disabled tasks.
- Status changed from New to Accepted
- Assignee set to Jan Helke
How to test:
- Pick a random scheduler task. Or create a new Scheduler test task (scheduler) with a very low frequency
- run "./bin/typo3 scheduler:run - i <ID> --force"
- Check in the scheduler module that the task ran and make a note of the Last Execution time
- Delete the task
- Grab a coffee (it should take a minute or more to see the change in the Execution time)
- run "./bin/typo3 scheduler:run - i <ID> --force" again
- Go to the Database and restore the task
- Go to the scheduler module and see, that the Execution Time changed
Other case:
- Pick a random scheduler task. Or create a new Scheduler test task (scheduler) with a very low frequency
- run "./bin/typo3 scheduler:run" (runs all tasks)
- Check in the scheduler module that the task ran and make a note of the Last Execution time
- Delete the task
- Grab a coffee (it should take a minute or more to see the change in the Execution time)
- run "./bin/typo3 scheduler:run" again
- Go to the Database and restore the task
- Go to the scheduler module and see, that the Execution Time changed
- Status changed from Accepted to Under Review
Both issues should be fixed with this patch.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF