Document scheduler tasks based on symfony
The ext:scheduler documentation has no mention of scheduler tasks based on symfony commands, but the core supports this since a while and even provides settings around that topic.
[DOCS] Remove own scheduler task docs in favor of symfony commands
As the preferred and future-proof way of creating commands is using
symfony commands (as a base for scheduler tasks), the documentation
has been adjusted to reflect that, by avoiding promoting the scheduler's
Tested-by: TYPO3com <firstname.lastname@example.org>
Tested-by: Björn Jacob <email@example.com>
Tested-by: Daniel Siepmann <firstname.lastname@example.org>
Reviewed-by: Björn Jacob <email@example.com>
Reviewed-by: Daniel Siepmann <firstname.lastname@example.org>
#2 Updated by Sybille Peters 8 months ago
Creating Symfony command controllers is documented in "TYPO3 Explained": https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/CommandControllers/Index.html
This also includes information about how to run the command from the command line and from the scheduler.
Perhaps it is helpful to link to this documentation in the scheduler docs (for now).
(As often), it is not so easy to decide, what should be in the system extension docs and what in the core manuals, but I would suggest to put the programming related things in "TYPO3 Explained", add links to the sysext docs and vice versa.
What is currently not clear to me: when to use scheduler tasks (TYPO3\CMS\Scheduler\Task\AbstractTask), when to use command controllers (\Symfony\Component\Console\Command\Command). Both can be executed from the command line, both can be executed in the scheduler. Why do we have 2? Will the functionality eventually get merged? (Personally, I have been using command controllers only recently).
I would love to help with the documentation but since I have too many open questions myself at the moment, probably not a good idea.
#5 Updated by Gerrit Code Review 8 months ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63600