hussein-awala commented on code in PR #38726:
URL: https://github.com/apache/airflow/pull/38726#discussion_r1558417585


##########
airflow/jobs/local_task_job_runner.py:
##########
@@ -274,7 +275,14 @@ def heartbeat_callback(self, session: Session = 
NEW_SESSION) -> None:
             recorded_pid = ti.pid
             same_process = recorded_pid == current_pid
 
-            if recorded_pid is not None and (ti.run_as_user or 
self.task_runner.run_as_user):
+            is_child_process = (
+                ti.run_as_user
+                and (ti.run_as_user != getuser())
+                or self.task_runner.run_as_user
+                and (self.task_runner != getuser())
+            )

Review Comment:
   Could you improve the parenthesis usage by respecting the pattern `(...) 
or/and (...)`?



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