Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
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
Guillaume Royer
jio
Commits
86e1969d
Commit
86e1969d
authored
Apr 07, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jIO job update does not clone sub response fix
parent
0c387951
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
src/jio/core/restCommandRejecter.js
src/jio/core/restCommandRejecter.js
+1
-0
src/jio/core/restCommandResolver.js
src/jio/core/restCommandResolver.js
+1
-0
src/jio/features/jobChecker.js
src/jio/features/jobChecker.js
+5
-5
No files found.
src/jio/core/restCommandRejecter.js
View file @
86e1969d
...
...
@@ -118,5 +118,6 @@ function restCommandRejecter(param, args) {
priority
.
error
=
priority
.
statusText
.
toLowerCase
().
replace
(
/ /g
,
'
_
'
).
replace
(
/
[^
_a-z
]
/g
,
''
);
}
param
.
storage_response
=
priority
;
return
param
.
solver
.
reject
(
deepClone
(
priority
));
}
src/jio/core/restCommandResolver.js
View file @
86e1969d
...
...
@@ -122,5 +122,6 @@ function restCommandResolver(param, args) {
]);
}
param
.
storage_response
=
priority
;
return
param
.
solver
.
resolve
(
deepClone
(
priority
));
}
src/jio/features/jobChecker.js
View file @
86e1969d
...
...
@@ -41,11 +41,11 @@ function enableJobChecker(jio, shared, options) {
if
(
!
original_job
.
solver
)
{
original_job
.
solver
=
new_job
.
solver
;
}
else
{
original_job
.
promise
.
then
(
new_job
.
command
.
resolve
,
new_job
.
command
.
reject
,
new_job
.
command
.
notify
);
original_job
.
promise
.
then
(
function
()
{
new_job
.
command
.
resolve
(
deepClone
(
original_job
.
storage_response
));
},
function
()
{
new_job
.
command
.
reject
(
deepClone
(
original_job
.
storage_response
));
},
new_job
.
command
.
notify
);
}
}
new_job
.
state
=
'
running
'
;
...
...
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