-
Notifications
You must be signed in to change notification settings - Fork 94
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
Preparing vs active #4668
Preparing vs active #4668
Conversation
@@ -822,7 +822,7 @@ def reload_taskdefs(self) -> None: | |||
itask.copy_to_reload_successor(new_task) | |||
self._swap_out(new_task) | |||
LOG.info(f"[{itask}] reloaded task definition") | |||
if itask.state(*TASK_STATUSES_ACTIVE): | |||
if itask.state(*TASK_STATUSES_ACTIVE, TASK_STATUS_PREPARING): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should warn for preparing tasks as pre-reload settings may have been baked into the filesystem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, 1/3 good, 2/3 not needed.
45c03ac
to
b0f092a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice tests. One review will do for this.
Found three instances where
TASK_STATUS_PREPARING
might be missing from aTASK_STATUSES_ACTIVE
state check.If we agree the check should be extended I'll add a test to enforce it.
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
andconda-environment.yml
.