diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 10:00:54 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 10:00:54 +0000 |
commit | 3cccd102ba543e02725d247893729e5c73b38295 (patch) | |
tree | f36a04ec38517f5deaaacb5acc7d949688d1e187 /doc/user/group/import | |
parent | 205943281328046ef7b4528031b90fbda70c75ac (diff) | |
download | gitlab-ce-3cccd102ba543e02725d247893729e5c73b38295.tar.gz |
Add latest changes from gitlab-org/gitlab@14-10-stable-eev14.10.0-rc42
Diffstat (limited to 'doc/user/group/import')
-rw-r--r-- | doc/user/group/import/index.md | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/doc/user/group/import/index.md b/doc/user/group/import/index.md index 0c16b535ed1..0185cb9cfdf 100644 --- a/doc/user/group/import/index.md +++ b/doc/user/group/import/index.md @@ -138,9 +138,9 @@ migrated: In a [rails console session](../../../administration/operations/rails_console.md#starting-a-rails-console-session), you can find the failure or error messages for the group import attempt using: -```shell +```ruby # Get relevant import records -import = BulkImports::Entity.where(namespace_id: Group.id).bulk_import +import = BulkImports::Entity.where(namespace_id: Group.id).map(&:bulk_import) # Alternative lookup by user import = BulkImport.where(user_id: User.find(...)).last @@ -154,3 +154,18 @@ entities.map(&:failures).flatten # Alternative failure lookup by status entities.where(status: [-1]).pluck(:destination_name, :destination_namespace, :status) ``` + +### Stale imports + +> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/352985) in GitLab 14.10. + +When troubleshooting group migration, an import may not complete because the import workers took +longer than 8 hours to execute. In this case, the `status` of either a `BulkImport` or +`BulkImport::Entity` is `3` (`timeout`): + +```ruby +# Get relevant import records +import = BulkImports::Entity.where(namespace_id: Group.id).map(&:bulk_import) + +import.status #=> 3 means that the import timed out. +``` |