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

Mark in-progress commands as not executed after restarting an agent #154

Open
TomasTurina opened this issue Sep 13, 2024 · 0 comments
Open
Labels

Comments

@TomasTurina
Copy link
Member

Description

As part of the development of the new agent, a command handler was introduced to handle the execution of commands received from the server.

Since an agent can stop or restart its execution at any time, this can happen while there are commands in progress that have not yet reported their result. Since the manager needs to know the result of each command, the command handler must check if there are any commands in progress at startup and report their result to the manager. For these cases, the commands must be marked as "agent stopped during execution" and this will be the reported result.

Considerations

  • The command handler should check for in-progress commands upon startup.
  • This will be a one-time check.
  • If in-progress commands are found, their status and result will be updated in the command store to reflect that the agent stopped during execution.
  • The result should be added to the queue to inform the manager, which will be waiting for this response.
  • If specified, the command should be removed from the command store after the result is queued.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant