Livebook session shutdown app hooks?

Is there a method to hook into the auto-shutdown of published apps, eg. to delete temp files created during the session?

I thought about it in the past and was just waiting for a use case. I opened Support runtime temporary directory · Issue #341 · livebook-dev/kino · GitHub to track this : )

1 Like

Thanks Jonatan,
A temp dir for each session should cover my use case exactly.

Kino.tmp_dir/0 available on Livebook and Kino main : )


Thanks for adding it so quickly. Works exactly how I need it :smiley:

1 Like