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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
YashRaj5
Regular Visitor

Shared Sessions are taking longer to get attached while executing notebook in pipeline run in fabric

Hello,

Over the past 3–4 days, we've observed an increase in the time it takes for a shared Spark session to attach when transitioning from one notebook activity to another. We've provided screenshots comparing previous runs with the latest ones.

While the duration of the middle activity remains mostly unchanged, the start and end activities are taking noticeably longer than before. Although the time difference may appear minor, it's becoming more significant—especially when this logic is executed multiple times. These extra minutes are adding up and contributing to a longer overall runtime.

before:

YashRaj5_1-1761926795219.png

after:

YashRaj5_4-1761927613376.png

 

If anyone is aware of this issue or has any insights or suggestions, your help would be greatly appreciated.
Thanks in advance, and have a great day!

1 ACCEPTED SOLUTION
Vinodh247
Solution Specialist
Solution Specialist

The screenshots show increased attach times for shared spark sessions in fabric pipelines esp., at the start and end notebook activities. This slowdown is likely due to backend resource contention/session reuse delays within the shared spark pool. When multiple notebooks run concurrently or capacity is under load, session warmup and context switch times may increase.

 

actions that you can try:

  1. Monitor fabric capacity metrics (CPU, memory, spark concurrency).

  2. Try assigning a dedicated spark session per pipeline or using “Run in new session” for critical notebooks.

  3. Clear idle sessions periodically using the fabric REST API or capacity admin tools.

  4. Raise a fabric support ticket with timestamps for correlation as this might be a transient backend performance regression.


Please 'Kudos' and 'Accept as Solution' if this answered your query.

Regards,
Vinodh
Microsoft MVP [Fabric]

View solution in original post

4 REPLIES 4
v-achippa
Community Support
Community Support

Hi @YashRaj5,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @Vinodh247 for the prompt response.

 

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

 

Thanks and regards,

Anjan Kumar Chippa

Hello 

Thanks for the input.

I have accepted the reply as solution.

Thanks @Vinodh247 , for you input, we were also suspecting the same, but the issue is kind of still there, as we are facing high runtime because of this small change from the backend.

Vinodh247
Solution Specialist
Solution Specialist

The screenshots show increased attach times for shared spark sessions in fabric pipelines esp., at the start and end notebook activities. This slowdown is likely due to backend resource contention/session reuse delays within the shared spark pool. When multiple notebooks run concurrently or capacity is under load, session warmup and context switch times may increase.

 

actions that you can try:

  1. Monitor fabric capacity metrics (CPU, memory, spark concurrency).

  2. Try assigning a dedicated spark session per pipeline or using “Run in new session” for critical notebooks.

  3. Clear idle sessions periodically using the fabric REST API or capacity admin tools.

  4. Raise a fabric support ticket with timestamps for correlation as this might be a transient backend performance regression.


Please 'Kudos' and 'Accept as Solution' if this answered your query.

Regards,
Vinodh
Microsoft MVP [Fabric]

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.