[GitHub] [airflow] uranusjr commented on pull request #22699: add allow_manual DAG argument to prevent scheduled DAGs from being triggered manually

2022-04-11 Thread GitBox
uranusjr commented on PR #22699: URL: https://github.com/apache/airflow/pull/22699#issuecomment-1095613028 You need to find all `create_dagrun` calls that creates manual runs, and decide how this needs to be catched and handled. I believe there are at least two, one in CLI and one in web

[GitHub] [airflow] uranusjr commented on pull request #22699: add allow_manual DAG argument to prevent scheduled DAGs from being triggered manually

2022-04-07 Thread GitBox
uranusjr commented on PR #22699: URL: https://github.com/apache/airflow/pull/22699#issuecomment-1091970513 That’d work. Another solution I can think of is to introduce a helper class: ```python from airflow.timetables import ScheduleInterval

[GitHub] [airflow] uranusjr commented on pull request #22699: add allow_manual DAG argument to prevent scheduled DAGs from being triggered manually

2022-04-07 Thread GitBox
uranusjr commented on PR #22699: URL: https://github.com/apache/airflow/pull/22699#issuecomment-1091911716 Adding it to the timetable sounds like the right thing, but has the obvious downside of making easy cases currently using `schedule_interval` much more verbose. -- This is an