-
Notifications
You must be signed in to change notification settings - Fork 15
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
Delayed job sends duplicate emails with Tomcat's parallel deployements #18
Comments
sounds like you know the issue and can work around it - for me its been a while and it will take me some to get into the DJ's internals. what name do they get than, is it different from the default? maybe provide a sample (or test) case that passes with DJ's multi-process architecture but fails with multi deploys ... |
How do you build the gem? I'm trying to fix it in my fork but found no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are using Tomcat parallel deployment feature (https://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment), and we have noticed that Delayed Job will send duplicate emails if there are more than one deployments of the same project in parallel.
Not entirely sure but seems like Delayed Job locking is bypassed because threads in different processes get the same name? https://github.com/kares/jruby-rack-worker/blob/master/src/main/ruby/delayed/jruby_worker.rb#L12
The text was updated successfully, but these errors were encountered: