-
Notifications
You must be signed in to change notification settings - Fork 694
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
Relationship class instance variable isn't thread safe #313
Comments
+1 |
+1. @armyofgnomes how did you end up working around this? |
We ended up doing just one worker per instance as a workaround :( |
We're stuck with this issue too. Any plans to address? |
We also have this issue and are working around it by using sidekiq-limit_fetch and limiting the queue to |
I just found #477 |
This has been fixed in caxlsx: caxlsx/caxlsx#10 |
Thank you! this one has been plaguing us for years :) |
If you generate reports in multiple threads, they will validate properly, but the relationship ids will be incorrect because it's caching all instances across threads. This will happen if you are using sidekiq workers.
https://github.com/randym/axlsx/blob/master/lib/axlsx/rels/relationship.rb#L11
The text was updated successfully, but these errors were encountered: