discourse/spec/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_spec.rb FIX: Backups should use relative paths for local uploads 2020-08-21 15:22:28 +02:00
backuper_spec.rb REFACTOR: Clean up parameterized title 2019-07-18 15:49:16 -06:00
database_restorer_spec.rb FIX: Prevent "uploads are missing in S3" alerts after restoring a backup 2020-09-10 21:37:48 +02:00
local_backup_store_spec.rb DEV: use #frozen_string_literal: true on all spec 2019-04-30 10:27:42 +10:00
meta_data_handler_spec.rb REFACTOR: Simplify backup version check 2020-01-15 23:37:40 +01:00
s3_backup_store_spec.rb new S3 backup layout (#9830) 2020-05-29 00:28:23 +05:30
shared_context_for_backup_restore.rb REFACTOR: Restoring of backups and migration of uploads to S3 2020-01-14 11:41:35 +01:00
shared_examples_for_backup_store.rb DEV: use #frozen_string_literal: true on all spec 2019-04-30 10:27:42 +10:00
system_interface_spec.rb PERF: Disable Sidekiq only during database restore (#10857) 2020-10-16 15:19:02 +02:00
uploads_restorer_spec.rb DEV: Clean up S3 specs, stubs, and helpers 2020-09-28 12:02:25 +01:00