Skip to content
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

Add StartUnit operation #103

Merged
merged 3 commits into from
Feb 2, 2023
Merged

Conversation

alexlarsson
Copy link
Contributor

This calls StartUnit on the agent, and if that succeeds it signals
the availability of a new job object and returns its object path.

Eventually the agent will detect the matching JobRemoved signal from
systemd and will send a JobDone to the manager, which will then
emit a JobRemoved on the hirte job object.

Compared to the dbus API document some things are missing:

  • There is no queueing of conflicting operations
  • We don't support properties on the Job object.

This is useful to add per-request-type data to the request.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
We're gonna need this to track when our requests complete.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
@alexlarsson
Copy link
Contributor Author

This is initial work on #91

src/agent/agent.c Outdated Show resolved Hide resolved
This calls StartUnit on the agent, and if that succeeds it signals
the availability of a new job object and returns its object path.

Eventually the agent will detect the matching JobRemoved signal from
systemd and will send a JobDone to the manager, which will then
emit a JobRemoved on the hirte job object.

Compared to the dbus API document some things are missing:
 * There is no queueing of conflicting operations
 * We don't support properties on the Job object.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move from POC: [Node] function to start a unit
2 participants