Skip to content
Snippets Groups Projects
Commit da4c63d7 authored by gdk's avatar gdk
Browse files

Finalize migration BackfillRemoteDevelopmentAgentConfigsProjectId

This migration was finished at `2024-06-03 10:28:02 UTC`, you can confirm
the status using our
[batched background migration chatops commands](https://docs.gitlab.com/ee/development/database/batched_background_migrations.html#monitor-the-progress-and-status-of-a-batched-background-migration).
  To confirm it is finished you can run:

  ```
/chatops run batched_background_migrations status 1000560
```

The last time this background migration was triggered was in [db/post_migrate/20240530122159_queue_backfill_remote_development_agent_configs_project_id.rb](https://gitlab.com/gitlab-org/gitlab/-/blob/master/db/post_migrate/20240530122159_queue_backfill_remote_development_agent_configs_project_id.rb)

  You can read more about the process for finalizing batched background migrations in
https://docs.gitlab.com/ee/development/database/batched_background_migrations.html .

  As part of our process we want to ensure all batched background migrations have had at least one
[required stop](https://docs.gitlab.com/ee/development/database/required_stops.html)
to process the migration. Therefore we can finalize any batched background migration that was added before the
last required stop.

This change was generated by
[gitlab-housekeeper](https://gitlab.com/gitlab-org/gitlab/-/tree/master/gems/gitlab-housekeeper)
using the Keeps::OverdueFinalizeBackgroundMigration keep.

To provide feedback on your experience with `gitlab-housekeeper` please create an issue with the
label ~"GitLab Housekeeper" and consider pinging the author of this keep.

Changelog: other
parent f9b7a442
No related branches found
No related tags found
3 merge requests!181325Fix ambiguous `created_at` in project.rb,!179611Draft: Rebase CR approach for zoekt assignments,!172769Finalize migration BackfillRemoteDevelopmentAgentConfigsProjectId
---
migration_job_name: BackfillRemoteDevelopmentAgentConfigsProjectId
description: Backfills sharding key `remote_development_agent_configs.project_id` from `cluster_agents`.
description: Backfills sharding key `remote_development_agent_configs.project_id`
from `cluster_agents`.
feature_category: remote_development
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/154773
milestone: '17.1'
queued_migration_version: 20240530122159
finalized_by: # version of the migration that finalized this BBM
finalized_by: '20241205232740'
# frozen_string_literal: true
class FinalizeBackfillRemoteDevelopmentAgentConfigsProjectId < Gitlab::Database::Migration[2.2]
milestone '17.7'
disable_ddl_transaction!
restrict_gitlab_migration gitlab_schema: :gitlab_main_cell
def up
ensure_batched_background_migration_is_finished(
job_class_name: 'BackfillRemoteDevelopmentAgentConfigsProjectId',
table_name: :remote_development_agent_configs,
column_name: :id,
job_arguments: [:project_id, :cluster_agents, :project_id, :cluster_agent_id],
finalize: true
)
end
def down; end
end
ea6c1eda21004a8b5815add04c2d105f0bd39b237b1db65ab345c722ec764540
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment