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

Race condition when running multiple parallel instances of CAT #149

Closed
felipeZ opened this issue Aug 21, 2020 · 0 comments · Fixed by #150
Closed

Race condition when running multiple parallel instances of CAT #149

felipeZ opened this issue Aug 21, 2020 · 0 comments · Fixed by #150
Assignees

Comments

@felipeZ
Copy link
Member

felipeZ commented Aug 21, 2020

The problem

When running multiple instances of CAT in parallel, using the prep function (from CAT.base import prep), the following error is raised:

[Errno 17] File exists: '.../workdir/plams_workdir'

The error is due to multiple Python processes running Plams independently resulting in multiple attends to create a plams_workdir in the current work directory.

Possible solution

I have bypassed the issue by using the retry decorator on the function invoking CAT, but a more robust behaviour could be that CAT invokes PLAMS using different (temporal) workdirs instead of the current workdir from where CAT is invoked

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

Successfully merging a pull request may close this issue.

2 participants