cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Scheduling jobs with Airflow result in each task running multiple jobs.

Tacuma
New Contributor II

Hey everyone, I'm experiementing with running containerized pyspark jobs in Databricks, and orchestrating them with airflow. I am however, encountering an issue here. When I trigger an airflow DAG, and I look at the logs, I see that airflow is spinning up multiple jobs in its first try.

It's really strange. Attached a screenshot - in this instance, I need the job to run only once, but here 3 jobs are being run.

Wanted to know if this has been encountered before and any fixes, and will send cluster and pool config details upon request.

4 REPLIES 4

daniel_sahal
Esteemed Contributor

That's weird behaviour. Can you please share the sample of an Airflow code?

Tacuma
New Contributor II

Thanks Daniel. Sure thing.

Debayan
Databricks Employee
Databricks Employee

Hi @Tacuma Solomonโ€‹ , 3 jobs with the same config? or 3 job runs?

Tacuma
New Contributor II

Both, I guess? Yes, all jobs share the same config - the question I have is why in the same airflow task log, there are 3 jobs runs. I'm hoping that there's something in the configs and may give me some kind of clue.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group