mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 17:33:40 +08: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
a36527ca77
commit
8573ac0d18
|
@ -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…
Reference in New Issue
Block a user