ChickenBenny commented on code in PR #77489:
URL: https://github.com/apache/airflow/pull/77489#discussion_r4696924424
##########
go-sdk/pkg/execution/task_runner.go:
##########
@@ -129,6 +130,25 @@ func RunTask(
return failTask(details.TIContext.ShouldRetry, err)
}
+ run := func(ctx context.Context) any {
+ return runTask(ctx, task, details, client, logger)
+ }
+ if timeoutSeconds == nil {
+ return run(ctx)
+ }
+ return runWithExecutionTimeout(
+ ctx, *timeoutSeconds, details.TIContext.ShouldRetry, logger,
run,
+ )
Review Comment:
Done in 8bb5510d39. `resolveExecutionTimeout` returns an `executionTimeout`,
either `disabledExecutionTimeout` or `enabledExecutionTimeout`, and `RunTask`
calls `start` and `run` on it with no branch.
--
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]