rails / solid_queue

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

What about adding jobs script to executables? #401

Open blocknotes opened 2 weeks ago

blocknotes commented 2 weeks ago

Hey :) In the gemspec, it could be useful something like:

  spec.bindir      = "exe"
  spec.executables = ["jobs"]

And the presence of the script in exe path (updated to run also from the ruby bin path). Useful to use it via bundle exec for example.

What do you think?

zarqman commented 1 week ago

FYI, jobs is a standard unix binary (and internal command in some shells, IIRC), so if the gems binary dir is in the $PATH, this will conflict. It'd have to be renamed to something like solid_queue first.

rosa commented 1 week ago

Right now the jobs script is just to be copied over to your Rails app's bin directory, it's not intended to be run in any other way, so I'm not sure why this would be an advantage 🤔