Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Automate
Agent sessions
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
AuTA
Core
Commits
e3c15036
Unverified
Commit
e3c15036
authored
Feb 15, 2020
by
Luc Everse
Browse files
Options
Downloads
Patches
Plain Diff
Set default timeout to one minute
parent
7980213d
No related branches found
No related tags found
2 merge requests
!148
Release 2.3.0
,
!137
Worker timeout
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/java/nl/tudelft/ewi/auta/core/model/Assignment.java
+5
-3
5 additions, 3 deletions
.../main/java/nl/tudelft/ewi/auta/core/model/Assignment.java
with
5 additions
and
3 deletions
core/src/main/java/nl/tudelft/ewi/auta/core/model/Assignment.java
+
5
−
3
View file @
e3c15036
package
nl.tudelft.ewi.auta.core.model
;
import
java.time.Duration
;
import
java.time.temporal.ChronoUnit
;
import
java.util.HashSet
;
import
java.util.Objects
;
import
java.util.Set
;
...
...
@@ -85,7 +87,7 @@ public class Assignment {
/**
* The worker timeout in number of seconds.
*/
private
I
nt
eger
timeout
=
0
;
private
i
nt
timeout
=
(
int
)
Duration
.
of
(
10
,
ChronoUnit
.
MINUTES
).
getSeconds
()
;
/**
* Create a new assignment object.
...
...
@@ -152,7 +154,7 @@ public class Assignment {
* Returns the worker timeout.
* @return the worker timeout in seconds.
*/
public
I
nt
eger
getTimeout
()
{
public
i
nt
getTimeout
()
{
return
this
.
timeout
;
}
...
...
@@ -160,7 +162,7 @@ public class Assignment {
* Returns the worker timeout.
* @param timeout the worker timeout in seconds.
*/
public
void
setTimeout
(
final
I
nt
eger
timeout
)
{
public
void
setTimeout
(
final
i
nt
timeout
)
{
this
.
timeout
=
timeout
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment