anishgirianish commented on code in PR #63491:
URL: https://github.com/apache/airflow/pull/63491#discussion_r3445345856
##########
airflow-core/src/airflow/executors/base_executor.py:
##########
@@ -471,6 +490,22 @@ def trigger_tasks(self, open_slots: int) -> None:
if workload_list:
self._process_workloads(workload_list)
+ def trigger_tasks(self, open_slots: int) -> None:
+ """Backward-compat shim: forwards to :meth:`trigger_workloads`."""
+ self._warn_legacy_property(
+ "trigger_tasks",
+ "trigger_tasks is deprecated, use trigger_workloads instead.",
+ )
+ self.trigger_workloads(open_slots)
+
+ def order_queued_tasks_by_priority(self) -> list:
+ """Backward-compat shim: forwards to
:meth:`_get_workloads_to_schedule`."""
+ self._warn_legacy_property(
+ "order_queued_tasks_by_priority",
+ "order_queued_tasks_by_priority is deprecated, use
_get_workloads_to_schedule instead.",
+ )
+ return self._get_workloads_to_schedule(self.parallelism -
len(self.running))
Review Comment:
Add a note thanks.
--
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]