You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
trying to send the command "abgeschlossene löschen" in TYPO3 BE I'll get;
[24-Sep-2023 10:42:31] WARNING: [pool typo3-11] child 3446167 said into stderr: "NOTICE: PHP message: PHP Fatal error: Allowed memory size of nnnn bytes exhausted (tried to allocate 20480 bytes) in typo3_src/typo3_src-11.5.30/typo3/sysext/extbase/Classes/DomainObject/AbstractDomainObject.php on line 218"
Maybe it would be better so create & call a taskRepository->deleteFinished() Method.
Something like this - untested:
use TYPO3\CMS\Core\Database\ConnectionPool;
/**
* delete all finished tasks, returns the count of the deleted tasks
* @return int
*/
public function deleteFinished(): int
{
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_taskqueue_domain_model_task');
$affectedRows = $queryBuilder
->delete('tx_taskqueue_domain_model_task')
->where(
$queryBuilder->expr()->eq('status', TaskInterface::FINISHED)
)
->executeStatement();
return $affectedRows;
}
The text was updated successfully, but these errors were encountered:
Hi,
trying to send the command "abgeschlossene löschen" in TYPO3 BE I'll get;
[24-Sep-2023 10:42:31] WARNING: [pool typo3-11] child 3446167 said into stderr: "NOTICE: PHP message: PHP Fatal error: Allowed memory size of nnnn bytes exhausted (tried to allocate 20480 bytes) in typo3_src/typo3_src-11.5.30/typo3/sysext/extbase/Classes/DomainObject/AbstractDomainObject.php on line 218"
At this moment our Taskq contains 102.480 tasks
Maybe it would be better so create & call a taskRepository->deleteFinished() Method.
Something like this - untested:
The text was updated successfully, but these errors were encountered: