Forum Discussion

felipecpereira's avatar
felipecpereira
Regular Visitor
1 year ago
Solved

Question Regarding Terminating Long-Running User Sessions in Microsoft Fabric

We’ve noticed a long-running user session in Microsoft Fabric. Could you confirm whether there is a way to manually terminate user sessions after they have been running beyond a specified threshold?

 

I’ve reviewed documentation related to background activity in Lakehouse databases, but I need guidance on ending the session from a capacity-level control perspective (rather than within an individual Lakehouse/database context).

9 Replies

  • Please specify if you mean Spark sessions or something else.

  • v-lgarikapat's avatar
    v-lgarikapat
    Community Support

    Hi felipecpereira ,

    Thanks for reaching out to the Microsoft fabric community forum.

    lbendlin 

    Thanks for your prompt response

    felipecpereira 

    Could you please provide more details in order to propose the appropriate solution? Please specify if you are referring to Spark sessions or something else

    We look forward to hearing from you.

    Best regards,
    Lakshmi

     

  • Hi v-lgarikapat and lbendlin

     

    In the Fabric report, we can check what has been executed, what is currently running, CU usage, etc. I would like to know if it's possible to terminate a user session once it meets a specific criterion, such as a session being open for more than 1 minute.

     

    I hadn’t considered Spark, but is it also possible to terminate the session of a specific user who has been running a notebook for a long time?

    • lbendlin's avatar
      lbendlin
      Super User

      Notebooks run inside spark sessions. Killing the session will terminate the notebook.

      • felipecpereira's avatar
        felipecpereira
        Regular Visitor

        Sure! And what about other processes? I would like to terminate a process when it reaches a specific execution time, for example