wuchichung opened a new issue #19532:
URL: https://github.com/apache/airflow/issues/19532
### Apache Airflow version
2.1.3
### Operating System
linux
### Versions of Apache Airflow Providers
_No response_
### Deployment
Docker-Compose
### Deployment details
_No response_
### What happened
I test with the max_active_runs parameters and I set it to 1.
If I pass the param through @dag() decorator, it is not going to work.
default_args = {
"owner": "cloud",
"depends_on_past": False,
"start_date": datetime(2020, 1, 1),
"provide_context": True,
"retries": 0,
"queue": CLOUD_CELERY_WORKER_Q,
"max_active_runs": 1,
}
@dag(dag_id=DAG_ID, default_args=default_args,
schedule_interval=timedelta(minutes=1))
def my_dummy_dag():
pass
HOWEVER, if I set it directly like the following, it works.
d = my_dummy_dag()
d.max_active_runs = 1
### What you expected to happen
It should not make any difference between this two methods.
### How to reproduce
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]