Akash Srivastava
Akash Srivastava

Reputation: 161

delayed_job handle_asynchronously equivalent in Sidekiq

I am in midst of shifting ActiveJob handling for a Rails 5 application from delayed_job to sidekiq. One small issue, I have certain model method doXYZ, after which this enforcement is present.

handle_asynchronously :doXYZ, run_at: proc { |i| i.run_at_time }

What would be an equivalent enforcement in Sidekiq ?

Upvotes: 2

Views: 626

Answers (1)

Rakesh
Rakesh

Reputation: 292

I think there is no replacement of handle_asynchronously in Sidekiq, But you can do like that https://gist.github.com/cristianbica/7706419

Upvotes: 1

Related Questions