leonsmith commented on issue #11901:
URL: https://github.com/apache/airflow/issues/11901#issuecomment-789007145
So this also effects dynamic dags.
```python
from datetime import datetime
from airflow.models import DAG
numbers = {1, 2, 3}
for number in numbers:
dag = DAG(
dag_id=f'dag_{number}',
schedule_interval='@once',
start_date=datetime(2020, 1, 1),
catchup=False
)
```
and then you switched numbers to a different set say "{1, 2}"
`dag_3` will always appear as active still.
----------------------------------------------------------------
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]