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

fix Flow deserialization for hosts #499

Merged
merged 1 commit into from
Dec 5, 2023
Merged

Conversation

gpetretto
Copy link
Contributor

Summary

There was an issue with the (de)serialization of a Flow. Since the hosts are added when a Flow is created from a list of Flows/Jobs, during deserialization hosts were duplicated for each of the jobs contained in the Flow.

This PR should fix this.

Copy link

codecov bot commented Nov 28, 2023

Codecov Report

Merging #499 (46e10db) into main (08fbf5f) will increase coverage by 0.00%.
Report is 9 commits behind head on main.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #499   +/-   ##
=======================================
  Coverage   99.86%   99.86%           
=======================================
  Files          20       20           
  Lines        1509     1510    +1     
  Branches      415      416    +1     
=======================================
+ Hits         1507     1508    +1     
  Misses          2        2           
Files Coverage Δ
src/jobflow/core/flow.py 100.00% <100.00%> (ø)

@utf
Copy link
Member

utf commented Dec 5, 2023

Great, thank you.

@utf utf merged commit 43f8463 into materialsproject:main Dec 5, 2023
8 checks passed
@utf utf added the fix Bug fix label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants