potiuk commented on code in PR #30308:
URL: https://github.com/apache/airflow/pull/30308#discussion_r1162450924


##########
airflow/jobs/job.py:
##########
@@ -222,34 +222,23 @@ def heartbeat(self, only_if_necessary: bool = False) -> 
None:
             # We didn't manage to heartbeat, so make sure that the timestamp 
isn't updated
             self.latest_heartbeat = previous_heartbeat
 
-    def run(self) -> int | None:
-        """Starts the job."""
+    @provide_session
+    def prepare_for_execution(self, session: Session = NEW_SESSION):

Review Comment:
   Good ideas. I am updating this part now and even adding some sequence 
diagrams to show how things "will" work when we implement AIP-44



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