base_sidekiq_worker
Sidekiq worker boilerplate I end up reimplementing on every background processing project I work on.
Jobs should implement process
, leaving perform
to the base class to enable other features. Uncomment the GC line if you're having memory issues you don't want to debug. Use blocked_by
and runs_every
as needed.
The static methods accessing Sidekiq's API are not anything-safe.