Repository navigation
core: add method to enqueue multiple jobs in a single call - #42182
Conversation
Claude review of PR #42182 (7034441)Must fix
Suggestions
Nits
|
|
needs rebase |
| * path; preserve that by falling back so each unit is evaluated | ||
| * individually. */ | ||
| log_debug_errno(r, "Batched %s aborted due to masked unit (%s), falling back to per-unit calls.", | ||
| method, bus_error_message(&error, r)); |
There was a problem hiding this comment.
eventually we should probably have a flag to make the call fail in this case, one day
|
need rebase. |
|
lgtm |
|
so i guess this isn't even a compat breakage, right? because you fall back to the one-by-one thing when the combined transaction failed? because i was about to suggest this should already have a NEWS entry announcing the compat break... but i guess we don't need that then |
|
hmm, can you update the "systemctl start" man page entry a tiny bit, and explain how this works now? also, maybe then add "Replaces: #7877" and close it, once you added that |
Currently only a single job for a single unit can be enqueued atomically, so there is no guarantee that, e.g., starting a unit and its socket at the same time will happen in the same transaction. That forces callers to 'know' the right order in which to start new units being installed, or failures will occur. It also means some ordering constraints are ignored, in case the separate calls are done in the wrong manual order. Add a new EnqueueUnitJobMany() D-Bus method that takes a list of units to start. Fixes systemd#8102 Co-authored-by: Michal Koutný <[email protected]>
It falls back in some cases, like the method is not available, but not for all cases. I can change that if you prefer? |
no i think i like it, because it reduces the compat problem a bit |
Co-developed-by: Claude Opus 4.7 <[email protected]>
Currently only a single job for a single unit can be enqueued atomically,
so there is no guarantee that, e.g., starting a unit and its socket
at the same time will happen in the same transaction. That forces
callers to 'know' the right order in which to start new units being
installed, or failures will occur. It also means some ordering
constraints are ignored, in case the separate calls are done
in the wrong manual order.
Add a new EnqueueUnitsJobs() D-Bus method that takes a list of units
to start.