ruby on rails - Querying sidekiq for models queued -
i have gallery photos, on processing photos through sidekiq.
when gallery has photos processing or in queue, i'd write in page.
one option mark each photo processing
when added queue, , let sidekiq worker remove when finished. downside need check if @ least 1 photo processing, meaning check photos...
is there way query sidekiq directly?
you can use sidekiq-status gem track jobs. can use code sidekiq::status::working? job_id
check if specific job running.
Comments
Post a Comment