kaxil commented on code in PR #76833:
URL: https://github.com/apache/airflow/pull/76833#discussion_r4666179658


##########
task-sdk/docs/resumable-job-mixin.rst:
##########
@@ -118,6 +118,23 @@ to check the current state of the job:
    longer than ``default_retention_days``, the identifier could be gone by the 
next retry,
    causing the operator to submit a fresh job instead of reconnecting.
 
+.. _sdk-resumable-job-mixin-banner:
+
+Durable execution banner
+------------------------
+
+When a retry reconnects to a running job, or uses the result of a job that 
already finished, the
+task logs page shows a banner saying so. The mixin records what each try did 
under the
+``__airflow_durable__`` task state store key, and the banner reads it. A 
deferrable operator that

Review Comment:
   With `[workers] state_store_backend` set, this record is offloaded like any 
other value, so the route only sees the ref and returns no tries, and those 
deployments never get the banner. Could this section say so?



##########
task-sdk/docs/resumable-job-mixin.rst:
##########
@@ -118,6 +118,23 @@ to check the current state of the job:
    longer than ``default_retention_days``, the identifier could be gone by the 
next retry,
    causing the operator to submit a fresh job instead of reconnecting.
 
+.. _sdk-resumable-job-mixin-banner:
+
+Durable execution banner
+------------------------
+
+When a retry reconnects to a running job, or uses the result of a job that 
already finished, the
+task logs page shows a banner saying so. The mixin records what each try did 
under the
+``__airflow_durable__`` task state store key, and the banner reads it. A 
deferrable operator that
+reconnects shows the banner without a job status, because the outcome is known 
only after the
+Triggerer fires and nothing records it there.
+
+.. note::
+
+   Only operators that use ``ResumableJobMixin`` show the banner. 
``KubernetesPodOperator``,
+   ``MSGraphAsyncOperator`` and ``AgentOperator`` implement durable execution 
on their own and do
+   not record what each try did, so they reconnect without a banner.

Review Comment:
   `GlueJobOperator` with `deferrable=True` uses the mixin but reattaches a 
retry through the task-UUID scan in `submit_job` and never calls 
`get_resume_decision`, so it gets no banner either. Worth naming it here?



-- 
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