Skip to content

fix job_kwargs#869

Open
gpetretto wants to merge 1 commit intomaterialsproject:mainfrom
gpetretto:bugfix
Open

fix job_kwargs#869
gpetretto wants to merge 1 commit intomaterialsproject:mainfrom
gpetretto:bugfix

Conversation

@gpetretto
Copy link
Copy Markdown
Contributor

As discussed in #860 and in #856, the @job decorator keeps a reference to the input job_kwargs and this could lead to inconsistencies if one of the arguments is modified in place.
This PR implements the proposed fix, which consists in the deepcopy of the job_kwargs. Of course there would be a slow down if many jobs with a custom JobConfig are created when submitting a flow. I am not sure if there could be any better solution that avoids it.

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 this pull request may close these issues.

1 participant