Skip to content

Commit

Permalink
Post rebase fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Sep 6, 2021
1 parent e42c4e8 commit 0db5464
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions cylc/flow/task_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1398,8 +1398,11 @@ def force_trigger_tasks(
or self._get_hidden_task_by_id(task_id)
)
if itask is None:
# Spawn with new flow number.
flow_nums = {self.flow_mgr.get_new_flow(flow_descr)}
# Spawn with new flow number, unless no reflow.
if reflow:
flow_nums = {self.flow_mgr.get_new_flow(flow_descr)}
else:
flow_nums = set()
itask = self.spawn_task(name, point, flow_nums)
if itask is None:
continue
Expand Down
3 changes: 2 additions & 1 deletion tests/functional/spawn-on-demand/10-retrigger/flow.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"""
[[triggerer]]
script = """
cylc__job__poll_grep_workflow_log '\[oops\.1\].* (received)failed'
cylc__job__poll_grep_workflow_log -E \
'oops\.1 running .* \(received\)failed'
cylc trigger ${CYLC_WORKFLOW_NAME} oops.1
"""
[[foo, bar]]

0 comments on commit 0db5464

Please sign in to comment.