Skip to content

Commit

Permalink
Scheduler: get_clock: use default_execution_id if not passed in (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmantel authored Dec 11, 2023
1 parent 6485a3e commit a99ec73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/graph_scheduler/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,10 @@ def get_absolute_conditions(self, termination_conds=None):
if cond.is_absolute
}

def get_clock(self, execution_id):
def get_clock(self, execution_id=NotImplemented):
if execution_id is NotImplemented:
execution_id = self.default_execution_id

try:
return self.clocks[execution_id.default_execution_id]
except AttributeError:
Expand Down

0 comments on commit a99ec73

Please sign in to comment.