Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsafe for multiprocessing? #440

Open
chapmanjacobd opened this issue Sep 21, 2022 · 0 comments
Open

unsafe for multiprocessing? #440

chapmanjacobd opened this issue Sep 21, 2022 · 0 comments

Comments

@chapmanjacobd
Copy link

chapmanjacobd commented Sep 21, 2022

Describe the bug
I don't think the library is safe for use with multiprocessing? Something is creating temporary pict001.png, pict001.wmf, and other similarly named files in the CWD. Sure it cleans up after itself but if two of the same program runs then they might overwrite the temp files (depending on how the dependency implemented temp file naming, but most likely, if the program is doing this, I would assume it is not going to safely run)

Expected behavior
I'm not sure what dependency is doing it but whichever one is doing it should probably run in a temporary directory as the working directory.

Desktop (please complete the following information):

  • OS: Fedora 36
  • Textract version 1.6.5
  • Python version 3.10.6
  • Virtual environment no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant