From 8573ac0d18ef77e190ae74a6e08bcc71dd2594ed Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Tue, 5 Feb 2019 20:47:00 +0100 Subject: [PATCH] FIX: Unpause Sidekiq before uploading backup to S3 No need to pause Sidekiq longer than really needed. Uploads to S3 can take a long time. --- lib/backup_restore/backuper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/backup_restore/backuper.rb b/lib/backup_restore/backuper.rb index bbdf0c561a7..cdda8a1de21 100644 --- a/lib/backup_restore/backuper.rb +++ b/lib/backup_restore/backuper.rb @@ -43,6 +43,8 @@ module BackupRestore log "Finalizing backup..." @with_uploads ? create_archive : move_dump_backup + + unpause_sidekiq upload_archive after_create_hook @@ -334,6 +336,7 @@ module BackupRestore end def unpause_sidekiq + return unless Sidekiq.paused? log "Unpausing sidekiq..." Sidekiq.unpause! rescue => ex