Skip to content

Commit 9a202e9

Browse files
authored
Update cylc/flow/config.py
1 parent 8066dbf commit 9a202e9

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

cylc/flow/config.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,16 +2289,11 @@ def check_outputs(self, terminals: Iterable[str]) -> None:
22892289
22902290
Raises: WorkflowConfigError if a custom output is not defined.
22912291
"""
2292-
terminal_outputs = []
2293-
for terminal in terminals:
2294-
if ':' in terminal:
2295-
task = re.search(TaskID.NAME_RE, terminal)
2296-
task = task.group() if task else ''
2297-
qualifier = re.search(GraphParser._RE_QUAL, terminal)
2298-
if qualifier:
2299-
qualifier_str = qualifier[0].strip(':')
2300-
if qualifier_str and qualifier_str not in TASK_QUALIFIERS:
2301-
terminal_outputs.append((task, qualifier_str))
2292+
terminal_outputs = [
2293+
(a[0].strip("!"), b)
2294+
for a in (t.split(':') for t in terminals if ":" in t)
2295+
if (b := a[1].strip("?")) not in TASK_QUALIFIERS
2296+
]
23022297

23032298
for task, output in terminal_outputs:
23042299
if output not in self.cfg['runtime'][task]['outputs']:

0 commit comments

Comments
 (0)