We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc5ab84 commit de15c74Copy full SHA for de15c74
ext/scheduler/airflow2/resources/__lib.py
@@ -240,7 +240,11 @@ def poke(self, context):
240
241
# parse relevant metadata from the job metadata to build the task window
242
# TODO this needs to be updated to use optimus get job spec
243
- upstream_schedule = self.get_schedule_interval(schedule_time)
+ try:
244
+ upstream_schedule = self.get_schedule_interval(schedule_time)
245
+ except Exception as e:
246
+ self.log.warning("error while fetching upstream schedule :: {}".format(e))
247
+ return False
248
249
last_upstream_schedule_time, _ = self.get_last_upstream_times(
250
schedule_time, upstream_schedule)
0 commit comments