Skip to content

Commit c0b0ada

Browse files
o-babmack
authored andcommitted
[BUGFIX] Allow to stop disabled task
Since also disabled tasks can be executed, it is now possible to stop them, once executed. This is important in case the task does not stop automatically, e.g. due to some error on execution. Resolves: #106688 Releases: main Change-Id: I8b0ddf9f0f94c659e52cc78a2993245d2323f8ba Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/89370 Tested-by: core-ci <typo3@b13.com> Reviewed-by: Markus Klein <markus.klein@typo3.org> Tested-by: Benni Mack <benni@typo3.org> Tested-by: Markus Klein <markus.klein@typo3.org> Reviewed-by: Benni Mack <benni@typo3.org>
1 parent 9076944 commit c0b0ada

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

typo3/sysext/scheduler/Classes/Domain/Repository/SchedulerTaskRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ public function findNextExecutableTaskForUid(int $uid): ?AbstractTask
480480

481481
public function isTaskMarkedAsRunning(AbstractTask $task): bool
482482
{
483-
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
484-
->getQueryBuilderForTable(self::TABLE_NAME);
483+
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable(self::TABLE_NAME);
484+
$queryBuilder->getRestrictions()->removeAll()->add(GeneralUtility::makeInstance(DeletedRestriction::class));
485485
$row = $queryBuilder
486486
->select('serialized_executions')
487487
->from(self::TABLE_NAME)

0 commit comments

Comments
 (0)