You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a multi-threaded/process environnement, the function generating the zip file is called multiple times in parallel, and may try to unlink a file that has already been unlinked by a parallel process. This ends up with a FileNotFoundError exception being raised at the application startup if such a case occurs.
During the route initialization process, the
client_pages
module is loaded to add the route to the client kickstart files.ICTV/ictv/flask/mapping.py
Line 7 in 97c8dcb
However, this module also generates the kickstart zip when it is loaded the first time.
ICTV/ictv/client/pages/client_pages.py
Line 84 in 97c8dcb
In a multi-threaded/process environnement, the function generating the zip file is called multiple times in parallel, and may try to unlink a file that has already been unlinked by a parallel process. This ends up with a
FileNotFoundError
exception being raised at the application startup if such a case occurs.ICTV/ictv/client/pages/client_pages.py
Lines 54 to 64 in 97c8dcb
Writing the file in parallel should also be avoided in case
ZipFile
does not implement an internal lock/is not threadsafe.The text was updated successfully, but these errors were encountered: