Skip to content

Commit 424ff81

Browse files
fix the jobResult contents in executed callback
Signed-off-by: Arnav Gupta <arnav@codingblocks.com>
1 parent b35ef8d commit 424ff81

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CHANGELOG
2+
3+
## 1.0.0
4+
5+
### 0.1.0
6+
7+
#### 0.0.2
8+
- fix the jobResult contents in executed callback
9+
10+
#### 0.0.1
11+
- basic taskmaster setup

dist/taskmaster.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/taskmaster.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/taskmaster.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ amqp.connect(`amqp://${config.AMQP.USER}:${config.AMQP.PASS}@${config.AMQP.HOST}
2020
execRun(job, (jobResult: RunResult) => {
2121
channel.sendToQueue(successQ, (new Buffer(JSON.stringify(<RunResult>{
2222
id: job.id,
23-
stderr: 'stderr',
24-
stdout: 'stdout'
23+
stderr: jobResult.stderr,
24+
stdout: jobResult.stdout
2525
}))))
2626
channel.ack(msg)
2727
});

0 commit comments

Comments
 (0)