ferruzzi commented on code in PR #63491:
URL: https://github.com/apache/airflow/pull/63491#discussion_r2943691731
##########
airflow-core/src/airflow/executors/workloads/__init__.py:
##########
@@ -32,6 +32,10 @@
Field(discriminator="type"),
]
+# Workload types that flow through executor queues (have queue_key and
sort_key).
+# Update this union when adding a new queueable workload type.
+QueueableWorkload: TypeAlias = ExecuteTask | ExecuteCallback
+
Review Comment:
I don't mind this, but move it into executors/workloads/types. I was
thinking of the same TyepAlias but was going to call it ExecutorWorkloads. I
think maybe your name is better.
--
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]