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

Workers not terminating as expected #1869

Open
SaiVaishnaviTadikamalla opened this issue Apr 24, 2023 · 1 comment
Open

Workers not terminating as expected #1869

SaiVaishnaviTadikamalla opened this issue Apr 24, 2023 · 1 comment

Comments

@SaiVaishnaviTadikamalla

Started bulk workers with the below command
queues: bin/rake environment rake resque:workers COUNT=2 QUEUE=*

During termination, on receiving SIGTERM from system, queues terminated with exit code 1 and not exit code 0
rake aborted!
Interrupt:
SignalException
Error stack trace:
/Users/user_name/.rvm/gems/ruby-3.1.2/gems/resque-2.5.0/lib/resque/tasks.rb:36:in join' /Users/user_name/.rvm/gems/ruby-3.1.2/gems/resque-2.5.0/lib/resque/tasks.rb:36:in block (3 levels) in

'
/Users/user_name/.rvm/gems/ruby-3.1.2/gems/resque-2.5.0/lib/resque/tasks.rb:36:in each' /Users/user_name/.rvm/gems/ruby-3.1.2/gems/resque-2.5.0/lib/resque/tasks.rb:36:in block (2 levels) in '
/Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in block in execute' /Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in each'
/Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:281:in execute' /Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:219:in block in invoke_with_call_chain'
/Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in synchronize' /Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:199:in invoke_with_call_chain'
/Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/task.rb:188:in invoke' /Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:160:in invoke_task'
/Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in block (2 levels) in top_level' /Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in each'
/Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:116:in block in top_level' /Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:125:in run_with_threads'
/Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:110:in top_level' /Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:83:in block in run'
/Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:186:in standard_exception_handling' /Users/user_name/.rvm/rubies/ruby-3.1.2/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/application.rb:80:in run'

This issue was not happening when queues started with single worker resque:work
queues: bin/rake environment rake resque:work QUEUE=*

@darkfishy
Copy link

This could be related to #1507
Even though the README and/or Wiki doesn't address it, it seems like starting multiple workers with resque:workers is only supported in development.

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