amoghrajesh commented on code in PR #44241:
URL: https://github.com/apache/airflow/pull/44241#discussion_r1858720820
##########
task_sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -159,8 +159,18 @@ def run(ti: RuntimeTaskInstance, log: Logger):
# TODO next_method to support resuming from deferred
# TODO: Get a real context object
ti.task.execute({"task_instance": ti}) # type: ignore[attr-defined]
- except TaskDeferred:
- ...
+ except TaskDeferred as defer:
+ next_method = defer.method_name
+ timeout = defer.timeout
+ kw = defer.kwargs or {}
+ # handle classpath on the server side
+ msg = DeferTask(
+ kwargs=kw,
+ next_method=next_method,
+ timeout=timeout,
+ )
Review Comment:
Handled this part using:
https://github.com/apache/airflow/pull/44241#discussion_r1858660595
--
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]