Scheduler tasks are executed in the same php process
The new scheduler:run command runs tasks in a loop.
This can be an issue, because a single php process runs several tasks and those tasks share the same memory.
I have an issue with Solr indexing tasks: a site A is indexed and loads singletons (Extbase's configuration manager), then the site B gets the configuration manager of the site A! (both sites are on the same TYPO3 instance).
I attached a patch which modifies the scheduler command in order to execute task in subprocesses.
Updated by Simon Schaufelberger about 2 months ago
Hi Daniel, uploading patches is not the right way to contribute to the core as somebody still needs to add the code changes to gerrit. Please do that yourself so that you will also get mentioned as contributor ;)
Updated by DANIEL Rémy about 2 months ago
I discussed this issue on slack core-dev channel, and I did not get good feedback.
Also, a new project https://github.com/helhum/typo3-crontab is on its way and will on day replace scheduler, if I understood correctly.
Pushing a review to gerrit is time consuming, and the process to get it merged is long and sometimes frustrating.
So in the meantime, I created a issue and attached the patch that works for my usecase.