mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 05:23:44 +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..."
|
log "Finalizing backup..."
|
||||||
|
|
||||||
@with_uploads ? create_archive : move_dump_backup
|
@with_uploads ? create_archive : move_dump_backup
|
||||||
|
|
||||||
|
unpause_sidekiq
|
||||||
upload_archive
|
upload_archive
|
||||||
|
|
||||||
after_create_hook
|
after_create_hook
|
||||||
|
@ -334,6 +336,7 @@ module BackupRestore
|
||||||
end
|
end
|
||||||
|
|
||||||
def unpause_sidekiq
|
def unpause_sidekiq
|
||||||
|
return unless Sidekiq.paused?
|
||||||
log "Unpausing sidekiq..."
|
log "Unpausing sidekiq..."
|
||||||
Sidekiq.unpause!
|
Sidekiq.unpause!
|
||||||
rescue => ex
|
rescue => ex
|
||||||
|
|
Loading…
Reference in New Issue
Block a user