task_that_failes = BashOperator( task_id="task_that_failes", bash_command="this-will-fail", on_failure_callback=OpsGenieExceptionReporter(), )