1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

delay_for does not exist anymore in sidekiq 5

This commit is contained in:
Nicolas Florentin 2019-09-20 15:01:27 +02:00
parent e179955169
commit 401df4cb77

View File

@ -9,7 +9,7 @@ module Project::OpenlabSync
after_destroy :openlab_destroy, if: :openlab_sync_active?
def openlab_create
OpenlabWorker.delay_for(2.seconds).perform_async(:create, self.id) if self.published?
OpenlabWorker.perform_in(2.seconds, :create, self.id) if self.published?
end
def openlab_update