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

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

ruby - How do I merge two hashes into a hash of arrays? -