Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Mark tasks as setting_up when their claiming node enters setting_up #25

Closed
ranweiler opened this issue Sep 23, 2020 · 1 comment
Closed

Comments

@ranweiler
Copy link
Member

When a node state enters setting_up, it does so because it has claimed a work set, which encompasses 1 or more tasks that share a common target setup container.

Right now, when this happens, the task state is scheduled, even though it has been claimed by a node. We don't reflect this until a given task is actually running, which may not happen until after running a target setup script, rebooting, &c. We also don't link the node and task commitment until this point, even though it exists earlier.

Instead, include the precipitating work set (or at least its task IDs) in the Node setting_up event, and immediately (1) update the task state to setting_up (which will be a new TaskState), and (2) create the NodeTask value which makes it known that the given task has been claimed by the given node.

@ranweiler
Copy link
Member Author

Done in #43.

@ghost ghost locked as resolved and limited conversation to collaborators Nov 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant