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.
This commit is contained in:
Gerhard Schlager 2019-02-05 20:47:00 +01:00 committed by Neil Lalonde
parent a36527ca77
commit 8573ac0d18

View File

@ -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