Hi all,

I wanted to share an update about a UI change that I just merged and that
should be part of Airflow 3.5:
https://github.com/apache/airflow/pull/76833

Durable execution came in Airflow 3.3, and it lets a retry reconnect to an
external job that is still running,
or reuse the result of one that already finished, instead of starting it
again. Until now, the only trace of that
was a log line and a metric, so it was easy to miss when it had actually
helped.

With this PR, I intended to surface it better to users. When a retry
reconnects or reuses a finished job, the
task logs page now shows a short banner above the tries -

*- Reconnected to existing job*, with a status badge while the retry waits
on the job and after it ends.
*- Avoided running a second copy of a ~2m job* once a reconnected job
succeeds. That is the job time a fresh rerun
would have spent again.
*- Used the result of an already finished job* when the job was done before
the retry started.

Hovering over the badge shows the job ID, when it was submitted, and how
long it ran.

It will be useful because now you can see on the exact try that a retry
reused a job instead of running it twice, without reading logs.
It works for any operator built on *ResumableJobMixin* (Databricks, Glue,
SageMaker, BigQuery, Redshift Data, Power BI, and others), with
no change needed in the operator.

Many thanks to Constance, Kaxil, and Brent for their detailed reviews. The
banner is clearer and more correct because of them.

If you try it and have some feedback for me - good or bad- I would be glad
to hear it here or on the PR.

Attaching some screenshots just in case you are curious.


Thanks & Regards,
Amogh Desai
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to