You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2023/01/11 15:42:55 UTC

[GitHub] [airflow] RNHTTR commented on issue #24534: Triggering DAG from UI Creates 2 DAG runs if the DAG was paused

RNHTTR commented on issue #24534:
URL: https://github.com/apache/airflow/issues/24534#issuecomment-1378984059

   I can still reproduce on 2.5.0:
   
   If you have a paused DAG, and the DAG hasn't run for the current [data interval](https://airflow.apache.org/docs/apache-airflow/stable/dag-run.html#data-interval), manually triggering the DAG using the UI will simultaneously trigger two DAG runs:
   1. The manual run with a `run_id` similar to `manual__2023-01-11T15:27:32.643794+00:00`
   2. The scheduled run, because the DAG needs to become unpaused to schedule tasks for the manual run 
   
   If you can't reproduce it, I recommend confirming that there are no dagruns within the current data interval.
   
   I think the easiest change that would be generally good would be:
   
   If a DAG is paused and a dagrun will be scheduled if the DAG is unpaused, _and_ the DAG is attempted to be triggered by clicking the play button from the UI, the UI should show a warning indicating that a scheduled run will also be triggered.
   
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org