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


##########
airflow/jobs/base_job.py:
##########
@@ -113,36 +113,15 @@ def __init__(self, executor=None, heartrate=None, *args, 
**kwargs):
         self.unixname = getuser()
         self.max_tis_per_query: int = conf.getint("scheduler", 
"max_tis_per_query")
         get_listener_manager().hook.on_starting(component=self)
-        super().__init__(*args, **kwargs)
+        self.job_type = job_runner.get_job_type()

Review Comment:
   It's defined above as the ORM field in BaseJob. So the whole reason of 
setting it here is to make sure that the `job_type` is retrieved from runner 
and stored in the database. 



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