Permalink
Browse files

fix(): process-manager, send JobProcessEvent

  • Loading branch information...
Izak88 authored and jkuri committed Aug 28, 2017
1 parent d59cdda commit d644da41f61b7864608c46e56bc262c843601839
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/api/process-manager.ts
@@ -229,14 +229,14 @@ export function startJob(p: JobProcess): Promise<void> {
.then(() => {
startBuildProcess(p.build_id, p.job_id, p.commands, 'abstruse', p.sshAndVnc)
.subscribe(event => {
const msg: JobMessage = {
const msg: JobProcessEvent = {
build_id: p.build_id,
job_id: p.job_id,
type: event.type,
data: event.data
};

terminalEvents.next(event);
terminalEvents.next(msg);
if (event.data && event.type === 'data') {
p.log.push(event.data);
} else if (event.type === 'container') {

0 comments on commit d644da4

Please sign in to comment.