What is difference between perform_in and perform_async in sidekiq?

17,034

You have to pass perform_in a time. perform_async gets pushed to the queue right away. Other than that they're the same. You'd call perform_in(10.minutes)

Share:
17,034
Prakash Laxkar
Author by

Prakash Laxkar

Around 5.5 years experience in development of Web application in Ruby on Rail platform. Overall exposure of Ruby on Rails Framework. Knowledge of distributed revision control system like Git and SVN. Knowledge of Mongo DB, Elasticsearch and Rspec. Knowledge of server configuration and deployment. Good understanding of Web 2.0 technologies HTML,CSS, jQuery, Ajax and JavaScript. Exceptionally well organized, high Initiative, strong work ethic and a willingness to work hard to achieve employer's confidence and objective.

Updated on June 27, 2022

Comments

  • Prakash Laxkar
    Prakash Laxkar almost 2 years

    I want to update old sidekiq jobs with new time interval. How I can do this ? Is it possible through perform_in option. In addition I want to know clear difference between perform_in and perform_async.

  • anothermh
    anothermh about 8 years
    Full documentation on the perform_in method is available at github.com/mperham/sidekiq/wiki/Scheduled-Jobs
  • atw
    atw over 6 years
    Is there documentation for perform, perform_now and perform_later? I think there are self explanatory but how would each be handled by Sidekiq?