Skip to content

Commit

Permalink
Add aliases for old workers
Browse files Browse the repository at this point in the history
This will allow already enqueued jobs to finish. These aliases can be
removed once the queue has drained
  • Loading branch information
JonathanHallam committed Sep 27, 2024
1 parent d97cbbd commit 21b9d8b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/sidekiq/check_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ def self.run(check_id, priority: "high", synchronous: false)
end
end
end

CheckWorker = CheckJob
2 changes: 2 additions & 0 deletions app/sidekiq/cleanup_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ def old_batches
Batch.where(id: BatchCheck.select(:batch_id).where(check: old_checks))
end
end

CleanupWorker = CleanupJob
2 changes: 2 additions & 0 deletions app/sidekiq/webhook_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ def generate_signature(body, key)
OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new("sha1"), key, body)
end
end

WebhookWorker = WebhookJob

0 comments on commit 21b9d8b

Please sign in to comment.