potiuk 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_r351276146
##########
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:
Done.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services