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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
b6d26f97
Commit
b6d26f97
authored
Feb 19, 2018
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add UI support for per-runner job timeout
parent
834f4738
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
1 deletion
+18
-1
app/models/ci/runner.rb
app/models/ci/runner.rb
+1
-1
app/views/admin/runners/_runner.html.haml
app/views/admin/runners/_runner.html.haml
+5
-0
app/views/admin/runners/index.html.haml
app/views/admin/runners/index.html.haml
+1
-0
app/views/projects/runners/_form.html.haml
app/views/projects/runners/_form.html.haml
+6
-0
app/views/projects/runners/_runner.html.haml
app/views/projects/runners/_runner.html.haml
+2
-0
app/views/projects/runners/show.html.haml
app/views/projects/runners/show.html.haml
+3
-0
No files found.
app/models/ci/runner.rb
View file @
b6d26f97
...
...
@@ -8,7 +8,7 @@ module Ci
ONLINE_CONTACT_TIMEOUT
=
1
.
hour
UPDATE_DB_RUNNER_INFO_EVERY
=
40
.
minutes
AVAILABLE_SCOPES
=
%w[specific shared active paused online]
.
freeze
FORM_EDITABLE
=
%i[description tag_list active run_untagged locked access_level]
.
freeze
FORM_EDITABLE
=
%i[description tag_list active run_untagged locked access_level
job_upper_timeout
]
.
freeze
has_many
:builds
has_many
:runner_projects
,
dependent: :destroy
# rubocop:disable Cop/ActiveRecordDependent
...
...
app/views/admin/runners/_runner.html.haml
View file @
b6d26f97
...
...
@@ -18,6 +18,11 @@
=
runner
.
version
%td
=
runner
.
ip_address
%td
-
if
runner
.
defines_job_upper_timeout?
=
runner
.
job_upper_timeout
-
else
n/a
%td
-
if
runner
.
shared?
n/a
...
...
app/views/admin/runners/index.html.haml
View file @
b6d26f97
...
...
@@ -61,6 +61,7 @@
%th
Description
%th
Version
%th
IP Address
%th
Timeout
%th
Projects
%th
Jobs
%th
Tags
...
...
app/views/projects/runners/_form.html.haml
View file @
b6d26f97
...
...
@@ -39,6 +39,12 @@
Description
.col-sm-10
=
f
.
text_field
:description
,
class:
'form-control'
.form-group
=
label_tag
:job_upper_timeout
,
class:
'control-label'
do
Job upper timeout
.col-sm-10
=
f
.
text_field
:job_upper_timeout
,
class:
'form-control'
.help-block
This timeout will take precedence when lower than Project-defined timeout
.form-group
=
label_tag
:tag_list
,
class:
'control-label'
do
Tags
...
...
app/views/projects/runners/_runner.html.haml
View file @
b6d26f97
...
...
@@ -36,6 +36,8 @@
-
if
runner
.
description
.
present?
%p
.runner-description
=
runner
.
description
-
if
runner
.
defines_job_upper_timeout?
%p
Job upper timeout:
#{
runner
.
job_upper_timeout
}
-
if
runner
.
tag_list
.
present?
%p
-
runner
.
tag_list
.
sort
.
each
do
|
tag
|
...
...
app/views/projects/runners/show.html.haml
View file @
b6d26f97
...
...
@@ -55,6 +55,9 @@
%tr
%td
Description
%td
=
@runner
.
description
%tr
%td
Job upper timeout
%td
=
@runner
.
job_upper_timeout
%tr
%td
Last contact
%td
...
...
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