admin管理员组

文章数量:1125623

I have an application in Ruby on Rails 8.0.1 on Windows OS and I am trying to use the solid_queue adapter in ActiceJobs, as described in the official documentation. But when I run ruby bin\jobs start, this error is shown:

D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/solid_queue-1.1.2/lib/solid_queue/supervisor/signals.rb:18:in `trap': unsupported signal `SIGQUIT' (ArgumentError)

            trap(signal) do
                 ^^^^^^
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/solid_queue-1.1.2/lib/solid_queue/supervisor/signals.rb:18:in `block in register_signal_handlers'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/solid_queue-1.1.2/lib/solid_queue/supervisor/signals.rb:17:in `each'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/solid_queue-1.1.2/lib/solid_queue/supervisor/signals.rb:17:in `register_signal_handlers'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/callbacks.rb:361:in `block in make_lambda'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/callbacks.rb:178:in `block in call'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/callbacks.rb:667:in `block (2 levels) in default_terminator'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/callbacks.rb:666:in `catch'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/callbacks.rb:666:in `block in default_terminator'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/callbacks.rb:179:in `call'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/callbacks.rb:558:in `block in invoke_before'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/callbacks.rb:558:in `each'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/callbacks.rb:558:in `invoke_before'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/callbacks.rb:108:in `run_callbacks'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/solid_queue-1.1.2/lib/solid_queue/supervisor.rb:49:in `block in boot'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/notifications.rb:210:in `block in instrument'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activesupport-8.0.1/lib/active_support/notifications.rb:210:in `instrument'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/solid_queue-1.1.2/lib/solid_queue.rb:67:in `instrument'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/solid_queue-1.1.2/lib/solid_queue/supervisor.rb:48:in `boot'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/solid_queue-1.1.2/lib/solid_queue/supervisor.rb:30:in `start'
        from <internal:kernel>:90:in `tap'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/solid_queue-1.1.2/lib/solid_queue/supervisor.rb:14:in `start'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/solid_queue-1.1.2/lib/solid_queue/cli.rb:26:in `start'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.3.2/lib/thor/command.rb:28:in `run'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.3.2/lib/thor/invocation.rb:127:in `invoke_command'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.3.2/lib/thor.rb:538:in `dispatch'
        from D:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.3.2/lib/thor/base.rb:584:in `start'
        from bin/jobs:6:in `<main>'

I'm using:

  • OS: Windows 11
  • Ruby 3.2.6
  • Rails 8.0.1

本文标签: ruby on railssolidqueue jobs dont run in windowsStack Overflow