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

support scheduled actions #393

Closed
michel-laterman opened this issue Apr 29, 2022 · 0 comments · Fixed by #419
Closed

support scheduled actions #393

michel-laterman opened this issue Apr 29, 2022 · 0 comments · Fixed by #419
Assignees
Labels
enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@michel-laterman
Copy link
Contributor

Describe the enhancement:

The agent should be able to handle actions with a start_time and expiration attribute.
These attributes can be used to schedule an action to occur at a later date.
start_time determines when the action should start, and expiration is when it is valid until (if the action has not occured it should ack as failed/aborted).

The scheduled actions should be persisted to disk to provide some form of persistency.

pending actions may be cancelled with a new CANCEL action type that will specify a target_id value.
If the target_id action is scheduled it will be removed and the target_id action will be acked as failed/aborted.

Describe a specific use case for the enhancement or feature:
In order to support scheduled upgrades the agent needs the ability to execute actions it receives at a later data.
The expiration attribute is used so we can put an upper bound for when we want to start executing actions in order to provide a maintenance window.
Cancelling pending actions will be provided so operators can abort actions if needed.

Note that setting a hard bound on action execution (aborting actions in progress) may be possible, but is outside of the scope for this issue

@michel-laterman michel-laterman added enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Apr 29, 2022
@michel-laterman michel-laterman self-assigned this Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant