Write a marco which will shut down all of the notebook kernels on a instance

cmjurs
cmjurs Registered Posts: 20 ✭✭✭✭

Hello,

Im reading in the documentation that it is possible to write some sort of macro which will shut down notebook kernels on an instance

https://doc.dataiku.com/dss/latest/operations/processes.html

"Administrators can also automatically kill Jupyter kernels that have been left alive for too long using a dedicated macro"

Does anyone out there have an example of how to do this?

Thanks,

Craig


Operating system used: Windows

Tagged:

Best Answer

  • Sander
    Sander Dataiku DSS Core Designer, Registered Posts: 3 ✭✭✭✭
    Answer ✓

    yes you can,

    1 Create a scenario and schedule.

    2 add a execute macro step.

    3 select the kill jupyter sessions macro.

    4 configure as desired.

Answers

  • HarizoR
    HarizoR Dataiker, Alpha Tester, Registered Posts: 138 Dataiker

    Hi,

    Look into the Macros section of your Project, you should see one called "Kill Jupyter sessions" in the "Resource management" section.

    Hope this helps!

    Best,

    Harizo

  • cmjurs
    cmjurs Registered Posts: 20 ✭✭✭✭

    Thanks Harizo - Is there a way to do this on a schedule? Like can you set it up as a custom scenario or something?

    Thanks,

    CJ

  • cmjurs
    cmjurs Registered Posts: 20 ✭✭✭✭

    brilliant!

Setup Info
    Tags
      Help me…