Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QMLBench Regression Finder
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Packages & Registries
Packages & Registries
Container Registry
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
Daniel Smith
QMLBench Regression Finder
Commits
3313c70b
Commit
3313c70b
authored
Jul 30, 2020
by
Daniel Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfixes
parent
f0066c53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
server.js
server.js
+3
-3
No files found.
server.js
View file @
3313c70b
...
...
@@ -239,15 +239,15 @@ function queryAgentJobs(req, res) {
console
.
log
(
`Received remote jobs from
${
globals
.
agents
[
i
]}
. Updating local lists...`
);
// Check to make sure the response isn't a literal empty object such as '{}'
if
(
Object
.
entries
(
response
.
data
.
runningJob
).
length
>
2
)
toolbox
.
addJob
t
oArray
(
globals
.
remoteRunningJobs
,
response
.
data
.
runningJob
);
toolbox
.
addJob
T
oArray
(
globals
.
remoteRunningJobs
,
response
.
data
.
runningJob
);
if
(
response
.
data
.
queuedJobs
.
length
>
0
)
{
for
(
let
j
in
response
.
data
.
queuedJobs
)
toolbox
.
addJob
t
oArray
(
globals
.
remoteQueuedJobs
,
response
.
data
.
queryJobs
[
j
]);
toolbox
.
addJob
T
oArray
(
globals
.
remoteQueuedJobs
,
response
.
data
.
queryJobs
[
j
]);
}
readyEmitter
.
emit
(
"
agentFinished
"
);
}).
catch
((
error
)
=>
{
// Just a WARN because it's not fatal that one of our remote hosts is offline for a minute
console
.
log
(
`WARN: Failed to query
${
globals
.
agents
[
i
]}
for jobs`
);
console
.
log
(
`WARN: Failed to query
${
globals
.
agents
[
i
]}
for jobs
\nError
${
error
}
`
);
readyEmitter
.
emit
(
"
agentFinished
"
);
});
}
...
...
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