sidekiq

how to delete a job in sidekiq

混江龙づ霸主 提交于 2019-11-27 00:22:42
问题 I am using sidekiq in my rails app. Users of my app create reports that start a sidekiq job. However, sometimes users want to be able to cancel "processing" reports. Deleting the report is easy but I also need to be able to delete the sidekiq job as well. So far I have been able to get a list of workers like so: workers = Sidekiq::Workers.new and each worker has args that include a report_id so I can identify which job belongs to which report. However, I'm not sure how to actually delete the

Resque vs Sidekiq? [closed]

社会主义新天地 提交于 2019-11-26 17:56:00
问题 I am currently using Resque for my background process but recently I heard a lot of huff-buff about sidekiq . Could anybody compare/differentiate? In particular I would like to know is there a way to monitor programmatically whether a job is completed in sidekiq 回答1: Resque: Pros: does not require thread safety (works with pretty much any gem out there); has no interpreter preference (you can use any ruby); Resque currently supports MRI 2.3.0 or later loads of plugins. Cons runs a process per