#107151Allow disable of schedulable in AsCommand attribute
Description
Hi,
in ext_kickstarter we have a lot of make:whatever commands. We just want to switch to new AsCommand PHP attribute, but in that case “schedulable” is activated by default, which does not make sense for us. Please add an option to also disable “schedulable”.
Stefan
Reviews 6
- 14.3 94987[BUGFIX] Allow command "mailer:spool:send" to be schedulable again
- main 94980[BUGFIX] Allow command "mailer:spool:send" to be schedulable again
- main 91623[FEATURE] Add attribute AsNonSchedulableCommand for "schedulable"
- main 92031[BUGFIX] Register TranslationDomainSearchCommand as command again
- 14.0 92035[BUGFIX] Register TranslationDomainSearchCommand as command again
- main 91760[TASK] Migrate remaining commands to AsCommand attribute
Related issues 3
History 815
-
Stefan Froemken changed tracker
BugFeature TYPO3 Version13<span data-processor="relativetime" data-value="2025-07-26T19:31:22+00:00" > 07/26/25, 19:31 </span> -
Garvin Hicking commented and changed category status
NewNeeds Feedback target version <span data-processor="relativetime" data-value="2025-07-26T21:35:51+00:00" > 07/26/25, 21:35 </span> -
Lina Wolf commented <span data-processor="relativetime" data-value="2025-07-29T14:18:00+00:00" > 07/29/25, 14:18 </span>
We could also introduce some kind of Interface like `implements NonSchedulableCommand`
-
Gerrit Code Review pushed patch set 1 for main to change 91623 status
Needs FeedbackUnder Review <span data-processor="relativetime" data-value="2025-11-13T15:28:18+00:00" > 11/13/25, 15:28 </span> -
Gerrit Code Review pushed patch set 2 for main to change 91623 <span data-processor="relativetime" data-value="2025-11-13T16:34:26+00:00" > 11/13/25, 16:34 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 91623 <span data-processor="relativetime" data-value="2025-11-13T18:03:45+00:00" > 11/13/25, 18:03 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 91623 <span data-processor="relativetime" data-value="2025-11-13T20:12:56+00:00" > 11/13/25, 20:12 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 91623 <span data-processor="relativetime" data-value="2025-11-17T08:06:12+00:00" > 11/17/25, 08:06 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 91623 <span data-processor="relativetime" data-value="2025-11-17T08:15:46+00:00" > 11/17/25, 08:15 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 91623 <span data-processor="relativetime" data-value="2025-11-19T15:11:27+00:00" > 11/19/25, 15:11 </span>
-
Garvin Hicking commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-11-19T20:10:08+00:00" > 11/19/25, 20:10 </span>Applied in changeset commit:21c484b9fa539e8b20697c6e001eee94c18bb6bb.
-
Oliver Bartsch changed Related to #108203 <span data-processor="relativetime" data-value="2025-11-19T20:50:52+00:00" > 11/19/25, 20:50 </span>
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T13:58:03+00:00" > 12/02/25, 13:58 </span> -
Lina Wolf changed Related to #108418 <span data-processor="relativetime" data-value="2025-12-07T08:04:40+00:00" > 12/07/25, 08:04 </span>
-
Markus Klein changed Related to #110317 <span data-processor="relativetime" data-value="2026-07-29T09:14:27+00:00" > 07/29/26, 09:14 </span>
The problem is that the symfony AsCommans attribute doesnt know this option. I think in the patch ti the introduction of this attribute this shortcoming was also addressed.
The only option I could think of would be an additinonal attribute like #[NotAsSchedulableCommand] which would (quite unconveniently) try to change the “AsCommans” wiring?
I believe in this case the Services.yaml registration is more feasible.
The scheduler API in v14 is changing a lot and the lines between schedulable tasks and (schedulable) commands will probably become much more blurry.