anishgirianish commented on code in PR #63491:
URL: https://github.com/apache/airflow/pull/63491#discussion_r2928412091
##########
airflow-core/src/airflow/executors/workloads/base.py:
##########
@@ -28,6 +29,23 @@
from airflow.api_fastapi.auth.tokens import JWTGenerator
+class WorkloadType(StrEnum):
+ """Central registry of all workload types."""
+
+ EXECUTE_TASK = "ExecuteTask"
+ EXECUTE_CALLBACK = "ExecuteCallback"
+ RUN_TRIGGER = "RunTrigger"
+
+
+# Central priority registry: Tuple is ordered from highest priority to lowest.
Review Comment:
added comment and updated doc string
--
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]