Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Kar_c
Regular Visitor

Spark job taking long time to run

Hi, I have been using notebook to execute my spark jobs, I have noticed that it takes around a minute and half to complete the job in a pipeline - the data volume is really low and I am using F4 capacity.

 

When I explored more on the monitoring section I noticed that the time actually it(spark tasks) takes is around 4 secs but not sure why the job runs for 1.5 minutes in a pipeline. 

 

I have a requirement of running the pipeline once in every 5 mins, so looking to optimise it 

 

Need suggestions to handle this.

 

My pipeline: 

Spark job - spark job(generic for the project) - copy job

 

Want the entire pipeline to complete within a minute, now it takes about 3 mins to complete. Currently the data volume is around 3000 rows for 1 run.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

you are sitting nicely between a rock and a hard place.  Spark pools take time to spin up. You could keep them "warm"  in between runs but that means you will pay for that "keeping warm".

 

Five minutes is exactly the sweet/sour spot where you lose no matter how you play that. Try to run your jobs less frequently, or accept the additional cost.

View solution in original post

5 REPLIES 5
v-prasare
Community Support
Community Support

@Kar_cAs we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

v-prasare
Community Support
Community Support

@Kar_c

 As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

 

v-prasare
Community Support
Community Support

@Kar_c, As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

lbendlin
Super User
Super User

you are sitting nicely between a rock and a hard place.  Spark pools take time to spin up. You could keep them "warm"  in between runs but that means you will pay for that "keeping warm".

 

Five minutes is exactly the sweet/sour spot where you lose no matter how you play that. Try to run your jobs less frequently, or accept the additional cost.

Thanks, we have not made any decisions as of now. I will further get intouch if I need more details.

 

Thanks again for your reply.

Helpful resources

Announcements
April Fabric Update Carousel

Fabric Monthly Update - April 2026

Check out the April 2026 Fabric update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.