Mark in-progress commands as not executed after restarting an agent #154
Labels
level/task
Task issue
module/agent
phase/feature complete
Feature complete
type/enhancement
Enhancement issue
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 text was updated successfully, but these errors were encountered: