ChickenBenny commented on code in PR #77489:
URL: https://github.com/apache/airflow/pull/77489#discussion_r4696940620


##########
airflow-core/docs/authoring-and-scheduling/language-sdks/go.rst:
##########
@@ -477,6 +477,12 @@ Its first parameter is an ``airflow.Context``, which gives 
it what Airflow provi
 that runs under ``context.WithoutCancel(actx)``. A helper that takes a plain 
``context.Context`` gets the
 ``airflow.Context`` back with ``airflow.FromContext``.
 
+When the task runs past its ``execution_timeout``, ``Done()`` fires with 
``sdk.ErrTaskTimeout`` as the cause, so
+``errors.Is(context.Cause(actx), sdk.ErrTaskTimeout)`` tells a timeout from 
Airflow stopping the task. The task then
+has ``[core] killed_task_cleanup_time`` to clean up and return. It fails with 
the timeout whatever it returns, and
+retries if it has retries. A value it returns after the timeout is not pushed 
as an XCom. A task that has not
+returned by then is reported as timed out and its process is stopped.

Review Comment:
   Done in 047a9ea704, with the same ref as the Java SDK docs.



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