kaxil commented on issue #53628:
URL: https://github.com/apache/airflow/issues/53628#issuecomment-3104369353

   >The reason I used this in 2.9.2 was to get the state of the previous DagRun 
and based on the current and previous state decided whether to send a 
notification or not (e.g.: if a DAG fails, we might only care to get a 
notification on the first failure or when it recovers, not in between)
   
   @cristian-fatu There is a `ti.get_dagrun_state()` state method for your 
use-case
   
   
https://github.com/apache/airflow/blob/3dc4cd2e01209efbb555b35debeb115367cbeb6d/task-sdk/src/airflow/sdk/execution_time/task_runner.py#L471-L489


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to