aershov aershov - 2 years ago 77
Ruby Question

Configure sidekiq to work without brocker in development environment

It would've been a nice feature to configure

to work synchronously on development environment - without installing and starting redis, no retrying and so on though I'm not saying that it is so hard to be done

For example celery has this feature as
in settings

Does sidekiq have a support for this?

Answer Source

Yes, sidekiq supports this. From the sidekiq wiki:

require 'sidekiq/testing'

That would run the jobs synchronously. If you want them to not run instead, you can use Sidekiq::Testing.fake!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download