Skip to content
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

Open
nasa42 opened this issue Oct 26, 2015 · 2 comments
Open

Comments

@nasa42
Copy link

nasa42 commented Oct 26, 2015

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

@kares
Copy link
Owner

kares commented Oct 26, 2015

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 ...

nasa42 added a commit to webstream-io/jruby-rack-worker that referenced this issue Nov 22, 2015
@nasa42
Copy link
Author

nasa42 commented Nov 22, 2015

How do you build the gem? I'm trying to fix it in my fork but found no jruby-rack-worker.gemspec file.

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

No branches or pull requests

2 participants