Open LinkPool2 opened 11 months ago
We could do something like this, but would loose the ability to use @Cascade("remove")
inside the TaskModel.
You have tow usecases/implementations here:
1 is very fast and works for endless tasks
2 is rather slow and suitable for only a few tasks that have many object relations and @Cascade("remove")
We have to keep in mind here that in injection in model is no longer possible under typo3 12.
So we might do this as a feature toggle and the user can decide which usecase they need.
See https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/FeatureToggles.html
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: