Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
node-bigstream
Commits
87eb7830
You need to sign in or sign up before continuing.
Commit
87eb7830
authored
May 22, 2017
by
project
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
f6f7ae16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
job-manager.js
coreservice/lib/job-manager.js
+5
-2
jobutils.js
lib/job/jobutils.js
+1
-1
No files found.
coreservice/lib/job-manager.js
View file @
87eb7830
...
...
@@ -64,8 +64,11 @@ JobManager.prototype.setJob = function (prm,cb)
if
(
JUtils
.
validate
(
job
)){
self
.
job_registry
.
setJob
(
job
.
job_id
,
job
);
self
.
trigger_registry
.
setByJob
(
job
);
cb
(
null
);
if
(
job
.
trigger
){
self
.
trigger_registry
.
setByJob
(
job
,
cb
);
}
else
{
self
.
trigger_registry
.
deleteByJobId
(
job
.
job_id
,
cb
);
}
}
else
{
cb
(
'Invalid job config'
);
}
...
...
lib/job/jobutils.js
View file @
87eb7830
...
...
@@ -12,7 +12,7 @@ function validate (jobcfg)
function
validate_trigger
(
trigger
)
{
if
(
!
trigger
){
return
fals
e
;}
if
(
!
trigger
){
return
tru
e
;}
if
(
!
trigger
.
type
){
return
false
;}
return
true
;
...
...
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