airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [airflow] feluelle commented on a change in pull request #6596: [AIRFLOW-6004] Untangle Executors class to avoid cyclic imports
Date Wed, 27 Nov 2019 12:44:50 GMT
feluelle commented on a change in pull request #6596: [AIRFLOW-6004] Untangle Executors class
to avoid cyclic imports
URL: https://github.com/apache/airflow/pull/6596#discussion_r351223354
 
 

 ##########
 File path: airflow/executors/celery_executor.py
 ##########
 @@ -227,11 +230,21 @@ def trigger_tasks(self, open_slots):
                     # and expect scheduler loop to deal with it.
                     self.queued_tasks.pop(key)
                     result.backend = cached_celery_backend
-                    self.running[key] = command
+                    self.running.add(key)
                     self.tasks[key] = result
                     self.last_state[key] = celery_states.PENDING
 
-    def sync(self):
+    def order_queued_tasks_by_priority(self) -> List[Tuple[TaskInstanceKey, QueuedTaskInstance]]:
+        """
+        Orders the queued tasks by priority.
 
 Review comment:
   missing an empty line between title and params

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message