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

Finalize migration BackfillPackagesDebianProjectComponentsProjectId

This migration was finished at `2024-07-01 09:30:09 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 1000609
```

The last time this background migration was triggered was in [db/post_migrate/20240627133840_queue_backfill_packages_debian_project_components_project_id.rb](https://gitlab.com/gitlab-org/gitlab/-/blob/master/db/post_migrate/20240627133840_queue_backfill_packages_debian_project_components_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 0716b814
No related branches found
No related tags found
2 merge requests!181205Finalize migration BackfillPackagesDebianProjectComponentsProjectId,!180727Resolve "Extend job archival mechanism to the whole pipeline"
---
migration_job_name: BackfillPackagesDebianProjectComponentsProjectId
description: Backfills sharding key `packages_debian_project_components.project_id` from `packages_debian_project_distributions`.
description: Backfills sharding key `packages_debian_project_components.project_id`
from `packages_debian_project_distributions`.
feature_category: package_registry
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/157626
milestone: '17.2'
queued_migration_version: 20240627133840
finalized_by: # version of the migration that finalized this BBM
finalized_by: '20250212025238'
# frozen_string_literal: true
class FinalizeHkBackfillPackagesDebianProjectComponentsProjectId < Gitlab::Database::Migration[2.2]
milestone '17.9'
disable_ddl_transaction!
restrict_gitlab_migration gitlab_schema: :gitlab_main_cell
def up
ensure_batched_background_migration_is_finished(
job_class_name: 'BackfillPackagesDebianProjectComponentsProjectId',
table_name: :packages_debian_project_components,
column_name: :id,
job_arguments: [:project_id, :packages_debian_project_distributions, :project_id, :distribution_id],
finalize: true
)
end
def down; end
end
2811c9c9cd1e4a6c2bedc1eea17856d48e7de2e64c9db4bc1217681a1ac5a152
\ 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