kamac commented on issue #9975: URL: https://github.com/apache/airflow/issues/9975#issuecomment-754547030
This also happens when triggering DAGs manually with `create_dagrun`. If the DagRun is created with state `RUNNING`, `max_active_runs` is not respected (the run isn't counted if you browse DAG's details page). I've also tried creating the run with state `SCHEDULED`, but it's never run by the scheduler. (perhaps I'm doing it the wrong way - I'm still investigating that) Here's the code for two DAGs to reproduce this: https://gist.github.com/kamac/7112af78f1a9004142903d4fe6e387d4 ---------------------------------------------------------------- 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]
