roykoand commented on code in PR #61833:
URL: https://github.com/apache/airflow/pull/61833#discussion_r2815865992
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/dag_run.py:
##########
@@ -459,6 +459,12 @@ def trigger_dag_run(
f"DAG with dag_id: '{dag_id}' has import errors and cannot be
triggered",
)
+ if dm.allowed_run_types is not None and DagRunType.MANUAL.value not in
dm.allowed_run_types:
Review Comment:
```suggestion
if dm.allowed_run_types is not None and DagRunType.MANUAL not in
dm.allowed_run_types:
```
Wouldn't it work without a `value`? It seems like accessing enum value
throught the pr is not consistent?
--
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]