jondot / sneakers

A fast background processing framework for Ruby and RabbitMQ
https://github.com/jondot/sneakers
MIT License
2.25k stars 333 forks source link

Live code reloading for development #304

Open achadee opened 7 years ago

tpsherratt commented 7 years ago

Checkout the gem rerun. It's probably not quite as smooth as what you have in mind, but is good enough.

michaelklishin commented 7 years ago

In case someone would be interested in contributing this feature and maintain it — and it's a harder problem than it seems but by now there may be an existing library that deals with most of the complexity — we would consider it. @achadee would you be interested in contributing?

Thanks for the suggestion, @tpsherratt .

achadee commented 7 years ago

We're actually moving off rabbit and onto SQS (for cost reasons) Im thinking about using this: https://github.com/phstc/shoryuken They have a built in rails module so the live reload should work off that. Maybe you guys should consider leveraging rails to do the live reload for you

michaelklishin commented 7 years ago

If Rails provides a library that can be used for code reloading outside of Rails, that's an option. Otherwise this project is not specific to Rails and requiring Rails as a dependency is too much to ask for.

achadee commented 7 years ago

Just did some googling, rails uses: guard-livereload hope that helps

lefty313 commented 5 years ago

@michaelklishin what about sidekiq solution to the same problem ?

https://github.com/mperham/sidekiq/issues/2450