-
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
Fix KeyError when using cylc remove
after a reload changed the graph
#6516
Conversation
f6b5e35
to
231f7ee
Compare
@@ -2327,7 +2327,7 @@ def filter_task_proxies( | |||
ids: Iterable[str], | |||
warn_no_active: bool = True, | |||
inactive: bool = False, | |||
) -> 'Tuple[List[TaskProxy], Set[Tuple[str, PointBase]], List[str]]': | |||
) -> 'Tuple[List[TaskProxy], Set[Tuple[TaskDef, PointBase]], List[str]]': |
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.
One thing to note with this change is that the hashability/equality of TaskDef
s is purely reference based (i.e. __hash__()
and __eq__()
fall back to object
default). This should be fine as the TaskDef
s are always coming from the scheduler.config.taskdefs
dictionary, I believe
231f7ee
to
35819a5
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.
:)
- Reproduced bug
- Checked that it fixed bug
- Read code
- Read tests
- Got irked that "read" is pronounced differently dependent on tense without changing spelling
🤣 fair play |
Closes #6502
Unreleased bug. To reproduce:
a & a:started => b
wherea
is either a long running task or is set to failb
and reload the workflowcylc remove a
KeyError
which crashes the schedulerCheck List
CONTRIBUTING.md
and added my name as a Code Contributor.