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

Solved!
cmjurs
Level 3
Write a marco which will shut down all of the notebook kernels on a instance

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

0 Kudos
1 Solution
sander
Level 2

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.

View solution in original post

0 Kudos
4 Replies
HarizoR
Developer Advocate

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
Level 3
Author

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

0 Kudos
sander
Level 2

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.

0 Kudos
cmjurs
Level 3
Author

brilliant! 

0 Kudos