Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0b8196a0
Commit
0b8196a0
authored
Feb 04, 2021
by
Arihant
Committed by
Nick Gaskill
Feb 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Console workaround for stuck jobs using resource_group
parent
24166653
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
doc/ci/troubleshooting.md
doc/ci/troubleshooting.md
+17
-0
No files found.
doc/ci/troubleshooting.md
View file @
0b8196a0
...
...
@@ -262,6 +262,23 @@ To [prevent duplicate pipelines](yaml/README.md#prevent-duplicate-pipelines), us
[
`workflow: rules`
](
yaml/README.md#workflowrules
)
or rewrite your rules to control
which pipelines can run.
### Console workaround if job using resource_group gets stuck
```
ruby
# find resource group by name
resource_group
=
Project
.
find_by_full_path
(
'...'
).
resource_groups
.
find_by
(
key:
'the-group-name'
)
busy_resources
=
resource_group
.
resources
.
where
(
'build_id IS NOT NULL'
)
# identify which builds are occupying the resource
# (I think it should be 1 as of today)
busy_resources
.
pluck
(
:build_id
)
# it's good to check why this build is holding the resource.
# Is it stuck? Has it been forcefully dropped by the system?
# free up busy resources
busy_resources
.
update_all
(
build_id:
nil
)
```
## How to get help
If you are unable to resolve pipeline issues, you can get help from:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment