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

Allow for thread-safe execution #1780

Merged
merged 14 commits into from
Feb 28, 2024
Merged

Allow for thread-safe execution #1780

merged 14 commits into from
Feb 28, 2024

Conversation

Andrew-S-Rosen
Copy link
Member

@Andrew-S-Rosen Andrew-S-Rosen commented Feb 28, 2024

Summary of Changes

This PR adds a new quacc setting, CHDIR, that will allow the user to specify whether any os.chdir calls are made, thereby allowing for multiple jobs to be run on a single Python process.

Closes #1641.

Checklist

  • I have read the "Guidelines" section of the contributing guide. Don't lie! 😉
  • My PR is on a custom branch and is not named main.
  • I have used black, isort, and ruff as described in the style guide.
  • I have added relevant, comprehensive unit tests.

Notes

  • Your PR will likely not be merged without proper and thorough tests.
  • If you are an external contributor, you will see a comment from @buildbot-princeton. This is solely for the maintainers.
  • When your code is ready for review, ping one of the active maintainers.

Andrew-S-Rosen and others added 14 commits February 28, 2024 10:41
This commit fixes the style issues introduced in 8744a2a according to the output
from Black, isort and Prettier.

Details: #1780
This commit fixes the style issues introduced in ccf1fdd according to the output
from Black, isort and Prettier.

Details: #1780
This commit fixes the style issues introduced in a742789 according to the output
from Black, isort and Prettier.

Details: #1780
This commit fixes the style issues introduced in 7329486 according to the output
from Black, isort and Prettier.

Details: #1780
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.41%. Comparing base (5426e78) to head (0530d10).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1780   +/-   ##
=======================================
  Coverage   99.41%   99.41%           
=======================================
  Files          79       79           
  Lines        3076     3079    +3     
=======================================
+ Hits         3058     3061    +3     
  Misses         18       18           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Andrew-S-Rosen Andrew-S-Rosen merged commit 47b96f1 into main Feb 28, 2024
21 checks passed
@Andrew-S-Rosen Andrew-S-Rosen deleted the threads branch February 28, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

MLP jobs can raise an error when launched in a multi-threading mode
1 participant