jason810496 commented on code in PR #61833:
URL: https://github.com/apache/airflow/pull/61833#discussion_r2813097392
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/assets.py:
##########
@@ -402,6 +403,13 @@ def materialize_asset(
f"More than one DAG materializes asset with ID: {asset_id}",
)
+ dm = session.scalar(select(DagModel).where(DagModel.dag_id ==
dag_id).limit(1))
+ if dm and dm.allowed_run_types is not None and DagRunType.MANUAL.value not
in dm.allowed_run_types:
Review Comment:
Same as Ash pointed out, resolved.
##########
airflow-core/src/airflow/models/backfill.py:
##########
@@ -100,6 +100,14 @@ class InvalidBackfillDate(AirflowException):
"""
+class DeniedDagRunType(AirflowException):
Review Comment:
Same as Ash pointed out, resolved.
--
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]