flowd / scheduler-forker
在独立的进程中运行每个TYPO3调度任务
1.2.0
2021-04-26 16:14 UTC
Requires
- php: >=7.1.0
- typo3/cms-core: ^8.7 || ^9.5 || ^10.4
- typo3/cms-scheduler: ^8.7 || ^9.5 || ^10.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.12
- phpstan/phpstan-strict-rules: ^0.10
- roave/security-advisories: dev-master
- saschaegerer/phpstan-typo3: 0.10.x-dev
- typo3/testing-framework: ^4.11
This package is auto-updated.
Last update: 2024-09-04 21:54:40 UTC
README
一个TYPO3扩展,它将在单独的进程中运行每个调度任务。
为什么?
TYPO3调度命令 typo3 scheduler:run
在同一进程中执行所有过期任务。
当使用Extbase(特别是ConfigurationManager)时,在多页面设置中可能会得到意外的结果。
原因是ConfigurationManager有一个静态缓存,这意味着如果您初始化了一个TYPO3配置(TypoScript),它将被用于之后执行的所有任务。没有方法可以重置ConfigurationManager并强制它为不同的页面加载配置。
如何使用
只需调用 typo3 scheduler_forker:run
而不是 typo3 scheduler:run
。然后,scheduler_forker将为每个过期任务调用 typo3 scheduler:run --task X
。