ChickenBenny commented on code in PR #76359:
URL: https://github.com/apache/airflow/pull/76359#discussion_r4578674328
##########
go-sdk/pkg/execution/task_runner.go:
##########
@@ -114,6 +116,19 @@ func RunTask(
}
}
+ timeoutSeconds, err :=
resolveExecutionTimeout(details.TIContext.ExecutionTimeout)
+ if err == nil && timeoutSeconds != nil {
+ err = client.setExecutionTimeout(ctx, *timeoutSeconds)
+ }
+ if err != nil {
+ logger.Error("Unable to apply execution_timeout",
+ "dag_id", details.TI.DagID,
+ "task_id", details.TI.TaskID,
+ "error", err,
+ )
+ return failTask(details.TIContext.ShouldRetry, err)
+ }
+
Review Comment:
fix with 1873ee0
--
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]