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


##########
go-sdk/pkg/execution/task_runner.go:
##########
@@ -129,6 +130,18 @@ func RunTask(
                return failTask(details.TIContext.ShouldRetry, err)
        }
 
+       return timeout.run(ctx, details.TIContext.ShouldRetry, logger, func(ctx 
context.Context) any {

Review Comment:
   Done in 06f13017c2. Only the task function is timed now:
   - `Execute` reads the arguments first, then calls `timeout.Run` around 
`fn.Call`, then pushes `return_value` and skips downstream tasks outside it.
   - `SetExecutionTimeout` is also sent after the arguments are read, so the 
supervisor's deadline starts at the same point.
   
   `TestServeDoesNotTimeTheReturnValuePushEndToEnd` has a push that takes 
longer than the timeout, and the task still succeeds. 
`TestExecuteTimesOnlyTheTaskFunction` pins the order.
   
   One difference from #76103: there `decide` and the skip run under the 
timeout. Here they run after it, like Python, which sends `SkipDownstreamTasks` 
after the timeout block. A `TriggerDagRun` task has no separate function, so 
its whole run is still timed, as `TriggerDagRunOperator.execute` is in Python.



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