aershov aershov - 4 months ago 7x
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?


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!