Skip to content
Snippets Groups Projects

Finalize migration BackfillCiTriggerRequestsProjectId

This migration was finished at `2024-11-09 18:26:03 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 2000351
```

The last time this background migration was triggered was in [db/post_migrate/20241015074127_queue_backfill_ci_trigger_requests_project_id.rb](https://gitlab.com/gitlab-org/gitlab/-/blob/master/db/post_migrate/20241015074127_queue_backfill_ci_trigger_requests_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 eecd5d00
No related branches found
No related tags found
1 merge request!181729Finalize migration BackfillCiTriggerRequestsProjectId
......@@ -5,4 +5,4 @@ feature_category: continuous_integration
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/169236
milestone: '17.6'
queued_migration_version: 20241015074127
finalized_by: # version of the migration that finalized this BBM
finalized_by: '20250217232035'
# frozen_string_literal: true
class FinalizeHkBackfillCiTriggerRequestsProjectId < Gitlab::Database::Migration[2.2]
milestone '17.10'
disable_ddl_transaction!
restrict_gitlab_migration gitlab_schema: :gitlab_ci
def up
ensure_batched_background_migration_is_finished(
job_class_name: 'BackfillCiTriggerRequestsProjectId',
table_name: :ci_trigger_requests,
column_name: :id,
job_arguments: [:project_id, :ci_triggers, :project_id, :trigger_id],
finalize: true
)
end
def down; end
end
08b164602d91e96b4bfa6226026f1ddb01eab72518376d879c87aab14e3d41ef
\ 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