File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff 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' ]:
You can’t perform that action at this time.
0 commit comments