Skip to content

Commit

Permalink
Simplify job
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Law committed Jun 12, 2023
1 parent 90ccfd1 commit da0ed2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/controllers/welcome_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class WelcomeController < ApplicationController
def index
HardJob.perform_in(5.minutes, 'bob', 5)
HardJob.perform_in(5.minutes.from_now)
HardJob.perform_async
end
end
2 changes: 1 addition & 1 deletion app/sidekiq/hard_job.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class HardJob
include Sidekiq::Job

def perform(name, count)
def perform
puts "Sidekiq HardJob is running"
end
end

0 comments on commit da0ed2e

Please sign in to comment.