Prepare for ci background migration worker
Change the existing BackgroundMigrationWorker to use SharedModel with the correct connection for running BG migration jobs. Also make the class and specs generic, in preparation for adding a new worker which will process jobs specific to the ci database.
显示
- .rubocop_todo/database/multiple_databases.yml 0 个添加, 1 个删除.rubocop_todo/database/multiple_databases.yml
- app/models/postgresql/replication_slot.rb 1 个添加, 1 个删除app/models/postgresql/replication_slot.rb
- app/workers/background_migration/single_database_worker.rb 148 个添加, 0 个删除app/workers/background_migration/single_database_worker.rb
- app/workers/background_migration_worker.rb 5 个添加, 112 个删除app/workers/background_migration_worker.rb
- spec/models/postgresql/replication_slot_spec.rb 8 个添加, 12 个删除spec/models/postgresql/replication_slot_spec.rb
- spec/support/shared_examples/workers/background_migration_worker_shared_examples.rb 212 个添加, 0 个删除...es/workers/background_migration_worker_shared_examples.rb
- spec/workers/background_migration_worker_spec.rb 1 个添加, 144 个删除spec/workers/background_migration_worker_spec.rb
加载中
想要评论请 注册 或 登录