Skip to content

Commit

Permalink
Add info about processId and terminalId to TaskExitedEvent
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Nikitenko <[email protected]>
  • Loading branch information
RomanNikitenko committed Jan 6, 2020
1 parent c4b3e2a commit df9c87b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/task/src/common/task-protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ export interface TaskExitedEvent {
readonly signal?: string;

readonly config?: TaskConfiguration;

readonly terminalId?: number;
readonly processId?: number;
}

export interface TaskOutputEvent {
Expand Down
4 changes: 3 additions & 1 deletion packages/task/src/node/process/process-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ export class ProcessTask extends Task {
ctx: this.context,
code: evt.code,
signal: evt.signal,
config: this.options.config
config: this.options.config,
terminalId: this.process.id,
processId: this.process.id
};
}

Expand Down

0 comments on commit df9c87b

Please sign in to comment.