jscheffl commented on code in PR #50278:
URL: https://github.com/apache/airflow/pull/50278#discussion_r2076189814


##########
providers/edge3/src/airflow/providers/edge3/models/edge_worker.py:
##########
@@ -243,7 +245,7 @@ def remove_worker(worker_name: str, session: Session = 
NEW_SESSION) -> None:
     """Remove a worker that is offline or just gone from DB."""
     query = select(EdgeWorkerModel).where(EdgeWorkerModel.worker_name == 
worker_name)
     worker: EdgeWorkerModel = session.scalar(query)
-    if worker.state == EdgeWorkerState.OFFLINE or worker.state == 
EdgeWorkerState.OFFLINE_MAINTENANCE:
+    if worker.state in (EdgeWorkerState.OFFLINE, 
EdgeWorkerState.OFFLINE_MAINTENANCE):

Review Comment:
   Ah, thanks for the cleaning!



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