rails / solid_queue

Database-backed Active Job backend
MIT License
1.95k stars 130 forks source link

[_J_L_M_] Please Add Support JRuby #374

Closed ddd2283 closed 1 month ago

ddd2283 commented 1 month ago

me$ jruby -S bundle exec bin/rake solid_queue:start

The signal QUIT is in use by the JVM and will not work correctly on this platform

rake aborted!

NotImplementedError: fork is not available on this platform /home/sbc_dev/jruby_gems/gems/solid_queue-0.1.2/lib/solid_queue/supervisor.rb:122:in start_fork' /home/sbc_dev/jruby_gems/gems/solid_queue-0.1.2/lib/solid_queue/supervisor.rb:72:inblock in start_forks' /home/sbc_dev/jruby_gems/gems/solid_queue-0.1.2/lib/solid_queue/supervisor.rb:72:in start_forks' /home/sbc_dev/jruby_gems/gems/solid_queue-0.1.2/lib/solid_queue/supervisor.rb:45:insupervise' /home/sbc_dev/jruby_gems/gems/solid_queue-0.1.2/lib/solid_queue/supervisor.rb:26:in start' /home/sbc_dev/jruby_gems/gems/solid_queue-0.1.2/lib/solid_queue/supervisor.rb:14:instart' /home/sbc_dev/jruby_gems/gems/solid_queue-0.1.2/lib/solid_queue/tasks.rb:4:in block in <main>' org/jruby/ext/monitor/Monitor.java:82:insynchronize' /home/sbc_dev/jruby_gems/gems/bundler-2.5.17/lib/bundler/cli/exec.rb:58:in kernel_load' /home/sbc_dev/jruby_gems/gems/bundler-2.5.17/lib/bundler/cli/exec.rb:23:inrun' /home/sbc_dev/jruby_gems/gems/bundler-2.5.17/lib/bundler/cli.rb:455:in exec' /home/sbc_dev/jruby_gems/gems/bundler-2.5.17/lib/bundler/vendor/thor/lib/thor/command.rb:28:inrun' /home/sbc_dev/jruby_gems/gems/bundler-2.5.17/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command' /home/sbc_dev/jruby_gems/gems/bundler-2.5.17/lib/bundler/vendor/thor/lib/thor.rb:527:indispatch' /home/sbc_dev/jruby_gems/gems/bundler-2.5.17/lib/bundler/cli.rb:35:in dispatch' /home/sbc_dev/jruby_gems/gems/bundler-2.5.17/lib/bundler/vendor/thor/lib/thor/base.rb:584:instart' /home/sbc_dev/jruby_gems/gems/bundler-2.5.17/lib/bundler/cli.rb:29:in start' /home/sbc_dev/jruby_gems/gems/bundler-2.5.17/exe/bundle:28:inblock in

' /home/sbc_dev/jruby_gems/gems/bundler-2.5.17/lib/bundler/friendly_errors.rb:117:in with_friendly_errors' /home/sbc_dev/jruby_gems/gems/bundler-2.5.17/exe/bundle:20:in
' uri:classloader:/META-INF/jruby.home/bin/bundle:25:in `
' Tasks: TOP => solid_queue:start (See full trace by running task with --trace)

rosa commented 1 month ago

Hey! Just like with Windows (https://github.com/rails/solid_queue/issues/81), this is not currently something we have planned to address. Maybe if we add a mode to run the supervised processes in the same process... but it's not currently planned.