-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent from propagating env vars at outside of fork task scope
Since deserialized context value of Token model by getting through AttributeSet#attributes is passed by reference, additional env values passed to create_child_token method overwrite a context which a token instance variable has. This cause unintentional env values propagation like KUROKO2_PARALLEL_FORK_SIZE at outside of the fork task scope. To avoid this, use the deep copy for context value instead.
- Loading branch information
Takuya Kosugiyama
committed
Jun 2, 2019
1 parent
0a86a4d
commit 78c67be
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters