mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +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
e7821a63e7
commit
bdbf77dc38
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue