コード例 #1
0
 def handle(self, schd: 'Scheduler', event: str, reason: str) -> None:
     """Handle a workflow event."""
     template_variables = get_template_variables(schd, event, reason)
     self._run_event_mail(schd, template_variables, event)
     self._run_event_custom_handlers(schd, template_variables, event)
     if schd.config.options.reftest and event == self.EVENT_SHUTDOWN:
         run_reftest(schd)
コード例 #2
0
ファイル: workflow_events.py プロジェクト: kinow/cylc-flow
 def handle(self, config, ctx):
     """Handle a workflow event."""
     self._run_event_mail(config, ctx)
     self._run_event_custom_handlers(config, ctx)
     if config.options.reftest and ctx.event == self.EVENT_SHUTDOWN:
         run_reftest(config, ctx)