You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class SidekiqJob
include Sidekiq::Worker
include Sidekiq::Status::Worker
sidekiq_options queue: :default, retry: false, unique: :until_and_while_executing
end
class CheckAlertsJob < SidekiqJob
def perform
AlertType.where("coalesce(condition) <> ''").each do |alert_type|
alert_type.check_for_alerts
end
end
end
There is any task running (CheckAlertsJob) and still new jobs are being queued. What is wrong?
The text was updated successfully, but these errors were encountered:
I encountered the same/similar issue. Duplicate jobs are being run for :while_executing and :until_and_while_executing (I verified that jobs are actually run in parallel).
sidekiq-unique-jobs 5.0.10
sidekiq 4.2.10
ruby 2.4.1
redis 3.0.6
Edit: tried it with 88ed7a9. It still runs duplicate jobs.
I have this code:
There is any task running (CheckAlertsJob) and still new jobs are being queued. What is wrong?
The text was updated successfully, but these errors were encountered: