You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "lzf12 (via GitHub)" <gi...@apache.org> on 2025/03/11 07:09:48 UTC
[I] Hello, we can't run a single DAG 3000 mission [airflow]
lzf12 opened a new issue, #47597:
URL: https://github.com/apache/airflow/issues/47597
### Apache Airflow version
Other Airflow 2 version (please specify below)
### If "Other Airflow 2 version" selected, which one?
2.10.4
### What happened?
Hello, at present, we can load about 1000 jobs in a single DAG can be scheduled normally, but when the number of jobs in a single DAG reaches 3000, the scheduling is very slow and often does not schedule, the production problem is more urgent, there is Lao Yuan author to help see, how should we make a single DAG support more than 3000 jobs and normal scheduling operation
### What you think should happen instead?
We are running tasks in the production environment, and the number of tasks gradually increases with the development of the business, and the number of jobs in a single DAG is currently the same ...
### How to reproduce
You only need to put the number of jobs in a single DAG DA ...
### Operating System
linux + k8s
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "gyli (via GitHub)" <gi...@apache.org>.
gyli commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2746672124
Could you provide some skeleton code for reproducing the issue?
--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "amolnaukri (via GitHub)" <gi...@apache.org>.
amolnaukri commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2713344659
Any particular use case you are trying to solve. Did you tried to have multiple dag for you use case.?
--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "lzf12 (via GitHub)" <gi...@apache.org>.
lzf12 commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2716205550
We cleaned up the metadata of the production environment dag, and then the 3000 task dag can be scheduled, we didn't run for long, this metadata will also affect the scheduling of airflow, we use k8s to start, we don't set the resource to the scheduler to use cluster resources by default, of course, we also tried to give 4cpu and 40G memory to try, but it doesn't work, we try to schedule 1000 tasks quickly, 3000 jobs become very difficult to schedule
--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2764964046
This is completely not understandable issue. Please describe your issue in a way that will help people who help others here in their voluntary time to understand it. If you need urgent help find somoene you can pay for help.
--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "lzf12 (via GitHub)" <gi...@apache.org>.
lzf12 commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2717060890
The predecessor task is successfully executed, but the subsequent task is not scheduled
--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "lzf12 (via GitHub)" <gi...@apache.org>.
lzf12 commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2717059710

--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "lzf12 (via GitHub)" <gi...@apache.org>.
lzf12 commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2747221222
We need to set the task state to the decentralized state, so that the downstream task will not become upstream_failed, so that there will be no unscheduling, we need to have a pre-control node to control whether the downstream task is executed, this control node is used to calculate whether the current resource can serve the downstream task, after setting the current node to the deferred state, the state of the post-node is still none, which will not affect the logic of the scheduler. We have seen the effect by updating the database job status, can you help us temporarily create an image for us to solve the production problem?
--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "lzf12 (via GitHub)" <gi...@apache.org>.
lzf12 commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2716208854
We have thought about splitting the DAG, but we dynamically generate a PY script and submit it to Airflow for resolution, there are about 3000 to 1W tasks at one time, and the business level does not allow splitting the DAG, and we hope to execute it in the same DAG, can this Airflow do it?
--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "lzf12 (via GitHub)" <gi...@apache.org>.
lzf12 commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2747176237
Hello, this 3000job can not be scheduled problem, we have reproduced, the main thing is that we have a pre-control node, by default it will be set to failed, so that the post-node will be set to upstream_failed, frequent such settings will lead to a very high pressure to update, and finally do not schedule, we will now set the pre-node to the deferred state, so that the post-node will not be updated to upstream_ failed or none, so that it can be scheduled in the next scheduling cycle, but the current insufficient points are OK, our RESTAPI can't directly modify the state of the task instance to the decentralized state, if the secondary development needs to modify which files, you can provide a such image to meet the customization needs
--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "set92 (via GitHub)" <gi...@apache.org>.
set92 commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2713913591
In my previous company we also had the main DAG being like 3200 tasks per country. And all this was generated by a json with acted as a tasks catalog. And yes, it was slow to load it, but with the change of Airflow to React became easier to interact with the tasks, and also with the Grid view.
So, I suppose you may need to introduce more task groups? Although of course, the simplest way would be to split the DAG. Maybe you can have one that is the ingestion, and another the definition or creation of tables? You can also try to combine some tasks that they are not critical, like pulling configuration from systems?
> the scheduling is very slow and often does not schedule
This part... I don't believe it, with our DAG of 3200 tasks, we had maybe 5 countries, aka 5 DAGs. The scheduling was always on point. Maybe you are not giving enough resources to the scheduling pod? Have you tried to split the dag processor from the scheduler? Are you hugging your cluster too much, and that doesn't allow the DAGs to run?
> number of tasks gradually increases with the development of the business
Not totally true, right? If you are developing new features of.. let's say BI, that is going to be couple tasks, and probably some logic can be combine with other tasks. You don't need the task "create_table" per feature, you can combine into a single task. But if you want to build them like that, there is also the option of using `TriggerDagRunOperator` to have a main DAG of ingesting data, and then a DAG per feature. This way if something fails you know the data is already on the DWH, but the processing of the data for the Feature X failed, and is easier to fix, and doesn't block the rest of features while you fix it.
--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #47597: Hello, we can't run a single DAG 3000 mission
URL: https://github.com/apache/airflow/issues/47597
--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "amolnaukri (via GitHub)" <gi...@apache.org>.
amolnaukri commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2716586410
are you trying to schedule 3000 tasks in one go or you have set DAG_CONCURRENCY setting for the dag.?
--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "lzf12 (via GitHub)" <gi...@apache.org>.
lzf12 commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2716682089
Try a DAG to schedule 3000 tasks, but not so many at once, from scratch
--
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
Re: [I] Hello, we can't run a single DAG 3000 mission [airflow]
Posted by "lzf12 (via GitHub)" <gi...@apache.org>.
lzf12 commented on issue #47597:
URL: https://github.com/apache/airflow/issues/47597#issuecomment-2717070021
ERROR - Marking run <DagRun V1.3.0_20250311210018_T000009_464105549110317056 @ 2025-03-12 08:29:49+00:00: scheduled__2025-03-12T08:29:49+00:00, state:running, queued_at: 2025-03-12 08:30:13.965882+00:00. externally triggered: False> failed
[2025-03-12T08:33:30.273+0000] {dagrun.py:905} INFO - DagRun Finished: dag_id=V1.3.0_20250311210018_T000009_464105549110317056, execution_date=2025-03-12 08:29:49+00:00, run_id=scheduled__2025-03-12T08:29:49+00:00, run_start_date=2025-03-12 08:30:30.265238+00:00, run_end_date=2025-03-12 08:33:30.272842+00:00, run_duration=180.007604, state=failed, external_trigger=False, run_type=scheduled, data_interval_start=2025-03-12 08:29:49+00:00, data_interval_end=2025-03-12 08:29:49+00:00, dag_hash=c940e2806c90a5911a8d8940f68001bc
This is the error log, which is marked as a failure directly after the execution is completed, and then there is no other output
--
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