bluesky / bluesky-queueserver

Server for queueing plans
https://blueskyproject.io/bluesky-queueserver/
BSD 3-Clause "New" or "Revised" License
11 stars 20 forks source link

Use separate temp directories per user for IPython kernel config files #296

Closed dmgav closed 5 months ago

dmgav commented 5 months ago

Description

The temporary IPython kernel config files were previously saved to /tmp/qserver/kernel_files directory. The name is now changed to /tmp/qserver_<username>/kernel_files to avoid issues with access permissions. A new kernel config file is created each time a console is started using qserver-console or qserver-qtconsole.

The changes are not expected to cause noticeable difference in the behavior of the queue server.

Fixed

The name of temporary directory used by qserver-console and qserver-qtconsole to store IPython kernel config file now contains user name (/tmp/qserver_<username>/kernel_files).

Added

Changed

Removed

How Has This Been Tested?

Manually tested. The code is also covered by multiple unit tests.