-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
JRuby Support #160
Comments
@tedhexaflow What version of JRuby are you using? I'll add it to the testing matrix. Theoretically GoodJob should be compatible with JRuby (ConcurrentRuby is compatible), but I don't have any experience with jRuby. |
Hi @bensheldon, I'm currently using 9.2.12.0 and the latest one is 9.2.13.0. We will need to replace 'pg' gems with 'activerecord-jdbcpostgresql-adapter' for JRuby. Thanks. |
I'm near to having a JRuby-compatible release of GoodJob in #167. One wrinkle is that |
Hi Ben, Thank you so much for the update. 🙏 |
@tedhexaflow JRuby support was just released in GoodJob Please open up any issues you run into or add them to this thread. |
Hi Ben, Thank you so much for spending your holiday time. Thanks, and wish you a Happy New Year. |
Hi Ben, I just had a chance to test and all 3 adapter options are working fine in development mode. There is a file with the name "migration.rb.erb" exist in this folder. (/Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/good_job-1.4.0/lib/generators/good_job/templates) LoadError: no such file to load -- /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/good_job-1.4.0/lib/generators/good_job/templates require at org/jruby/RubyKernel.java:974 require_relative at org/jruby/RubyKernel.java:1002 new_from_string at config.ru:5 eval at org/jruby/RubyKernel.java:1048 new_from_string at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/rack-2.2.3/lib/rack/builder.rb:116 load_file at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/rack-2.2.3/lib/rack/builder.rb:105 parse_file at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/rack-2.2.3/lib/rack/builder.rb:66 build_app_and_options_from_config at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/rack-2.2.3/lib/rack/server.rb:349 app at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/rack-2.2.3/lib/rack/server.rb:249 wrapped_app at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/rack-2.2.3/lib/rack/server.rb:422 start at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/rack-2.2.3/lib/rack/server.rb:312 handle_profiling at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/rack-2.2.3/lib/rack/server.rb:379 start at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/rack-2.2.3/lib/rack/server.rb:311 start at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/railties-6.0.3.4/lib/rails/commands/server/server_command.rb:39 perform at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/railties-6.0.3.4/lib/rails/commands/server/server_command.rb:147 tap at org/jruby/RubyKernel.java:1897 perform at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/railties-6.0.3.4/lib/rails/commands/server/server_command.rb:138 run at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/thor-1.0.1/lib/thor/command.rb:27 invoke_command at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/thor-1.0.1/lib/thor/invocation.rb:127 dispatch at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/thor-1.0.1/lib/thor.rb:392 perform at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/railties-6.0.3.4/lib/rails/command/base.rb:69 invoke at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/railties-6.0.3.4/lib/rails/command.rb:46 at /Users/tedhexaflow/.asdf/installs/ruby/jruby-9.2.13.0/lib/ruby/gems/shared/gems/railties-6.0.3.4/lib/rails/commands.rb:18 require at org/jruby/RubyKernel.java:974 at bin/rails:6 |
@tedhexaflow thanks for the update! I've re-opened this Issue and will figure out why it's not working in the production environment. |
@tedhexaflow I just released GoodJob v1.4.1 with a fix for your error message. I had trouble reproducing the problem; I'm sorry if we have to play whackamole on these errors. I'm committed to getting jruby working for you. |
Hi Ben, Thank you so much. 🙏 |
Hello Ben, I just tested with ApacheTomcat, and it is working flawlessly as well. 🎉🍾🤩 I believe this is a huge help for the JRuby community. Most of the JRuby Apps are for Enterprise Application, and the way we deploy is different from the normal Rails app deployment (i.e., Heroku.) We normally package the app with https://github.com/jruby/warbler and drop the war file to ApacheTomcat. With other gems (i.e., DelayedJob), we cannot run the external command (i.e., delayed_job start) as a daemon without having the source code on the production server. But with the GoodJob :async execution mode, we no longer need to have the source code on the production server and no more daemon to run, monitor, and maintain. As far as I'm aware, there are no other ActiveJob Backend gems that work as mentioned above without any additional work for JRuby (with ApacheTomcat). I think the JRuby community should be aware of this precious gem. Cheers! |
Hello,
Is there any plan to support for JRuby?
Many Thanks.
Ted
The text was updated successfully, but these errors were encountered: