discourse/lib/backup_restore
Gerhard Schlager d5ef6188ed
PERF: Disable Sidekiq only during database restore (#10857)
It pauses Sidekiq, clears Redis (namespaced to the current site), clears Sidekiq jobs for the current site, restores the database and unpauses Sidekiq. Previously it stayed paused until the end of the restore.

Redis is cleared because we don't want any old data lying around (e.g. old Sidekiq jobs). Most data in Redis is prefixed with the name of the multisite, but Sidekiq jobs in a multisite are all stored in the same keys. So, deleting those jobs requires a little bit more logic.
2020-10-16 15:19:02 +02:00
..
backup_file_handler.rb DEV: Restoring backups didn't work on macOS 2020-08-27 19:08:47 +02:00
backup_store.rb
backuper.rb FIX: Backup didn't work anymore after a running backup was canceled 2020-10-13 19:48:53 +02:00
database_restorer.rb FIX: Prevent "uploads are missing in S3" alerts after restoring a backup 2020-09-10 21:37:48 +02:00
factory.rb
local_backup_store.rb
logger.rb
meta_data_handler.rb REFACTOR: Simplify backup version check 2020-01-15 23:37:40 +01:00
restorer.rb PERF: Disable Sidekiq only during database restore (#10857) 2020-10-16 15:19:02 +02:00
s3_backup_store.rb FIX: do not migrate backups in the new prefix 2020-06-12 02:56:07 +00:00
system_interface.rb PERF: Disable Sidekiq only during database restore (#10857) 2020-10-16 15:19:02 +02:00
uploads_restorer.rb