Skip to content

Commit

Permalink
Merge pull request #72 from devit-tel/feature/replace-time-keeper-wit…
Browse files Browse the repository at this point in the history
…h-reminder

Feature/replace time keeper with reminder
  • Loading branch information
NV4RE authored Aug 11, 2021
2 parents 594502c + 9c9bb68 commit 058412d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 24 deletions.
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"mongoose": "^5.12.12",
"mongoose-lean-virtuals": "^0.4.4",
"node-rdkafka": "^2.10.1",
"node-zookeeper-client": "^1.1.0",
"node-zookeeper-client": "^1.1.1",
"ramda": "^0.26.1",
"tslib": "^1.10.0",
"uuid": "^3.3.3"
Expand Down
1 change: 0 additions & 1 deletion src/kafka/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export const pollWithMessage = <T = any>(
messageNumber,
(error: LibrdKafkaError, messages: Message[]) => {
if (error) return reject(error);
consumer.commitMessageSync;
resolve([
messages.map((message: Message) => {
return jsonTryParse<T>(message.value.toString());
Expand Down
4 changes: 4 additions & 0 deletions src/store/redis/taskInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ export class TaskInstanceRedisStore extends RedisStore
`${prefix}.workflow-task.${workflowId}`,
);

if (!taskKeys.length) {
return [];
}

const tasksString = await this.client.mget(
...taskKeys.map((taskId: string) => `${prefix}.task.${taskId}`),
);
Expand Down

0 comments on commit 058412d

Please sign in to comment.