Skip to content

Commit

Permalink
Make CleanupWorker CleanupJob
Browse files Browse the repository at this point in the history
Sidekiq workers are not supported by the new version
  • Loading branch information
JonathanHallam committed Sep 26, 2024
1 parent 9920f80 commit e6851db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/workers/cleanup_worker.rb → app/workers/cleanup_job.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "sidekiq-scheduler"

class CleanupWorker
include Sidekiq::Worker
class CleanupJob
include Sidekiq::Job

def perform
checks_to_perform.each do |check_id|
Expand Down
2 changes: 1 addition & 1 deletion config/sidekiq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
:schedule:
cleanup:
every: 60m
class: CleanupWorker
class: CleanupJob
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"

RSpec.describe CleanupWorker do
RSpec.describe CleanupJob do
describe "perform" do
let(:link1) { create(:link, id: 1) }
let(:link2) { create(:link, id: 2) }
Expand Down

0 comments on commit e6851db

Please sign in to comment.