Bug #39139
closedDecouple backend task execution from backend
0%
Description
It would be cool, if a task is executed through the backend, that then a new process in cli context is executed (eg. via exec()).
This would have mulptiple advantages:- No scope change anymore if a task is executed via cli_dispatch.php or the backend
- No fatal error in the backend module if a task fatals
- Far easier scoping within extbase based tasks (see related issues).
See also the comment for patch https://review.typo3.org/#/c/9517/
Updated by Christian Kuhn about 12 years ago
yes, maybe even later ... maybe some other core things like a real context concept in typo3 bootstrap should also be done first? this ticket is for now only here to document the need at all.
Updated by Stefan Neufeind almost 12 years ago
What would partially resolve this would be running manually started tasks on next cron-run. I've filed separate issue #45537 for that.
But I agree that even if called directly maybe calling the scheduler by exec() might be a good idea.
Do we have the correct syntax on how to call PHP somehow already? Or would we need a setting in the installer to (optionally) specify path and name of the php-binary? If not set we could attempt an auto-detection (let system search for "php" in the path).
Updated by Michael Stucki almost 11 years ago
- Project changed from 739 to TYPO3 Core
- Category changed from scheduler to scheduler
Updated by Mathias Schreiber almost 10 years ago
- Target version set to 7.5
- TYPO3 Version set to 6.2
- Is Regression set to No
Updated by Stefan Neufeind almost 10 years ago
If we run it via exec we'll have a proper cli-context. But if I'm right there will still be max-execution (since the calling PHP-process will die at some point). Could that be? And if so, might it be a better idea to just re-schedule the job to fire at the next regular cron-execution (intention of #45537). But we might even go both ways and have that configurable, so that if you only run via cron every 30min or so you could still do the manual invocation immediately as described here.
Updated by Benni Mack about 9 years ago
- Assignee set to Benni Mack
- Target version changed from 7.5 to 8 LTS
yes. we should call it via exec or schedule it separately. I don't know how much effort this will take, but would solve a lot of problems.
Updated by Christian Kuhn about 9 years ago
- Status changed from New to Closed
resolved as dupe of #49379