Skip to content

Conversation

@kkthxbye-code
Copy link
Contributor

Fixes: #8959

Simply add a lock around the non-threadsafe section.

Tested with the threaded runserver. As the function is not really a hot path, the slight performance loss when receiving multiple requests at the same time should be almost unnoticable.

@jeremystretch jeremystretch merged commit 8b81c10 into netbox-community:develop Apr 25, 2022
@kkthxbye-code kkthxbye-code deleted the fix-8959 branch May 9, 2022 16:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Race condition caused by PR #7803 when clearing modules from the sys.modules cache

2 participants