Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes.d/7026.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Log (re)commencement of xtrigger calls, for old xtriggers.
4 changes: 4 additions & 0 deletions cylc/flow/xtrigger_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ def call_xtriggers_async(self, itask: 'TaskProxy'):
# General case: potentially slow asynchronous function call.
if sig in self.sat_xtrig:
# Already satisfied, just update the task
LOG.info(f"[{itask}] satisfying xtrigger prerequisite: {sig}")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should log this as INFO, as confirmation that an xtrigger prerequisite is being satisfied by an existing xtrigger result.

if not itask.state.xtriggers[label]:
itask.state.xtriggers[label] = True
res = {}
Expand Down Expand Up @@ -760,7 +761,10 @@ def housekeep(self, itasks):
itask, sigs_only=True, unsat_only=True)
for sig in list(self.sat_xtrig):
if sig not in all_xtrig:
LOG.debug(f"Housekeeping xtrigger result: {sig}")
del self.sat_xtrig[sig]
with suppress(KeyError):
del self.t_next_call[sig]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the bug fix.

self.do_housekeeping = False

def all_task_seq_xtriggers_satisfied(self, itask: 'TaskProxy') -> bool:
Expand Down
Loading