gflores1023 opened a new issue #9975:
URL: https://github.com/apache/airflow/issues/9975
**Apache Airflow version**: 1.10.11, localExecutor
**What happened**:
I have max_active_runs = 1 in my dag file and I manually triggered a dag.
While it was running, a second began under its scheduled time while the first
execution was running.
```
dag = DAG(
'dag1',
default_args=default_args,
description='xyz',
schedule_interval=timedelta(hours=3),
catchup=False,
max_active_runs=1
)
```
**What you expected to happen**:
Only one execution should run. A second execution should not begin.
**How to reproduce it**:
In my scenario:
1. Manually trigger dag to run.. this takes an hour to run. (Dag Execution1)
2. While Execution1 is running, a second execution (Execution2) begins on
its scheduled.

**Anything else we need to know**:
I _think_ the second execution begins in between the task1 and task2 of
execution1. I think there's a few second delay there and maybe that's when
Airflow thinks there's no dag execution? That's just a guess.
Or maybe, max_active_runs doesn't work correctly when the first execution is
manually 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.
For queries about this service, please contact Infrastructure at:
[email protected]