Launching an automation sometimes failed with a FileNotFoundError, seen from the client as "Unhandled error"
File "~/.virtualenvs/crosscompute/opt/jupyterlab-crosscompute/jupyterlab_crosscompute/handlers.py", line 63, in post
launch_state = make_launch_state(
File "~/.virtualenvs/crosscompute/opt/jupyterlab-crosscompute/jupyterlab_crosscompute/routines.py", line 76, in make_launch_state
], cwd=automation_folder, start_new_session=True, stdout=open(
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp_6b_8liy/launch/7011.log'
Option 1: Create the folder if it does not exist
Option 2: Replace tempfile.mkdtmp with invisibleroads_macros_disk.make_random_folder
I think this happens because /tmp gets flushed periodically, perhaps on a rotating basis. I am leaning towards Option 1.
Launching an automation sometimes failed with a FileNotFoundError, seen from the client as "Unhandled error"
tempfile.mkdtmp
withinvisibleroads_macros_disk.make_random_folder
I think this happens because
/tmp
gets flushed periodically, perhaps on a rotating basis. I am leaning towards Option 1.