示例#1
0
 def execute(self, context):
     target_dttm = context['data_interval_end']
     target_dttm += self.delta
     self.defer(trigger=DateTimeTrigger(moment=target_dttm),
                method_name="execute_complete")
示例#2
0
 def execute(self, context: Context):
     self.defer(
         trigger=DateTimeTrigger(moment=self.target_datetime),
         method_name="execute_complete",
     )
示例#3
0
 def execute(self, context: Context):
     self.defer(
         trigger=DateTimeTrigger(moment=timezone.parse(self.target_time)),
         method_name="execute_complete",
     )
示例#4
0
 def execute(self, context):
     dag = context['dag']
     target_dttm = dag.following_schedule(context['execution_date'])
     target_dttm += self.delta
     self.defer(trigger=DateTimeTrigger(moment=target_dttm),
                method_name="execute_complete")