amoghrajesh commented on code in PR #77015:
URL: https://github.com/apache/airflow/pull/77015#discussion_r4663833507


##########
task-sdk/src/airflow/sdk/bases/resumablejobmixin.py:
##########
@@ -145,7 +151,9 @@ def get_resume_decision(self, context: Context) -> 
ResumeDecision:
         """
         Decide whether to reconnect to the stored job, take its result, or 
submit a new one.
 
-        Never submits or polls, so a deferrable operator can call it before 
``defer()``.
+        Never submits or polls, so a deferrable operator can call it before 
``defer()``. The one

Review Comment:
   `get_resume_decision` now returns a "resume" decision (with the stored id 
and status) and never calls the engine. The new `resume_stored_job(context, 
decision)` runs the resume and returns `None` when the caller should submit 
fresh. The deferrable example in the docs uses it.



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