-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement StopUnit and flesh out Job object #106
Commits on Feb 2, 2023
-
Manager: Change StartUnitOp to more generic JobSetup
We want to use this code for all operations that create a job. Also, make it refcount to streamline some of the memory ownership tracking. Signed-off-by: Alexander Larsson <alexl@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 33b737b - Browse repository at this point
Copy the full SHA 33b737bView commit details -
Agent: Make StartUnitOp a reusable AgentJobOp
All the operations that track a job like StartUnit can reuse this type. Also, make it refcounted to make the ownership handling clearer. Signed-off-by: Alexander Larsson <alexl@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 3a212c3 - Browse repository at this point
Copy the full SHA 3a212c3View commit details -
Signed-off-by: Alexander Larsson <alexl@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for ae56af6 - Browse repository at this point
Copy the full SHA ae56af6View commit details -
Node: Centralize checking of offline nodes in dbus implementation
We use a filter that runs before the vtable functions and ensure that all Node operations always handle offline nodes in a central place. This simplifies the method implementations and makes sure we don't miss the check somewhere. Signed-off-by: Alexander Larsson <alexl@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 89d9938 - Browse repository at this point
Copy the full SHA 89d9938View commit details -
Add DEFINE_CLEANUP_FUNC to avoid repetitive work
This is similar to _SD_DEFINE_POINTER_CLEANUP_FUNC and means we don't have to repeat all these identical cleanup functions. Signed-off-by: Alexander Larsson <alexl@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 2d51f99 - Browse repository at this point
Copy the full SHA 2d51f99View commit details -
Agent API description: Update to current state
The actual implementation of the job side in the agent ended up a bit different, as we don't need a real job object for the agent side. We just reuse the unique id of the public job object to hang everything off. Signed-off-by: Alexander Larsson <alexl@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 6c5c6dd - Browse repository at this point
Copy the full SHA 6c5c6ddView commit details -
User unrefp(&ptr) in destructors
Whereever we have `if(ptr) unref(ptr)` we now use unrefp(&ptr) which makes the code cleaner with less unneccesary indentation. Signed-off-by: Alexander Larsson <alexl@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 989942a - Browse repository at this point
Copy the full SHA 989942aView commit details -
Remove the TODOs about handling queueing
After implementing this I don't think we need to do any queueing on the manager side. We already pass the mode to the agent which will give it to systemd, which does the queueing. We just need to propagate the WAITING => RUNNING state change. Signed-off-by: Alexander Larsson <alexl@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 6e4e0c3 - Browse repository at this point
Copy the full SHA 6e4e0c3View commit details -
Node: Add comment for where ListUnits implementation begins.
Signed-off-by: Alexander Larsson <alexl@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for fff8214 - Browse repository at this point
Copy the full SHA fff8214View commit details -
Signed-off-by: Alexander Larsson <alexl@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 7fdff29 - Browse repository at this point
Copy the full SHA 7fdff29View commit details -
Signed-off-by: Alexander Larsson <alexl@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for d75233b - Browse repository at this point
Copy the full SHA d75233bView commit details -
Node: Check for errors from sd_bus_message_append()
Signed-off-by: Alexander Larsson <alexl@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for cf01629 - Browse repository at this point
Copy the full SHA cf01629View commit details