mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00:00
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:
parent
e7821a63e7
commit
bdbf77dc38
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user