Skip to content

Commit

Permalink
Don't delete xtriggers table before every update.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Jan 8, 2024
1 parent 6b38dd3 commit bd40cd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cylc/flow/rundb.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ class CylcWorkflowDAO:
["prereq_output", {"is_primary_key": True}],
["satisfied"],
],
# The xtriggers table holds the function signature and result of
# already-satisfied (the scheduler no longer needs to call them).
TABLE_XTRIGGERS: [
["signature", {"is_primary_key": True}],
["results"],
Expand Down
2 changes: 1 addition & 1 deletion cylc/flow/workflow_db_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def put_task_event_timers(self, task_events_mgr):

def put_xtriggers(self, sat_xtrig):
"""Put statements to update external triggers table."""
self.db_deletes_map[self.TABLE_XTRIGGERS].append({})
# self.db_deletes_map[self.TABLE_XTRIGGERS].append({})
for sig, res in sat_xtrig.items():
self.db_inserts_map[self.TABLE_XTRIGGERS].append({
"signature": sig,
Expand Down

0 comments on commit bd40cd1

Please sign in to comment.