Skip to content

Commit

Permalink
[squash] Handle different configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bennett Buchanan committed May 29, 2018
1 parent 9dac495 commit b985d3c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"topic": "backbeat-replication",
"replicationStatusTopic": "backbeat-replication-status",
"replicationFailedTopic": "backbeat-replication-failed",
"monitorReplicationFailures": true,
"queueProcessor": {
"groupId": "backbeat-replication-group",
"retryTimeoutS": 300,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ class ReplicationStatusProcessor {
sourceEntry.getCanonicalKey(), next),
], done);
}
if (task) {
return this.taskScheduler.push({ task, entry: sourceEntry },
sourceEntry.getCanonicalKey(), done);
}
this.logger.warn('skipping unknown source entry',
{ entry: sourceEntry.getLogInfo() });
return process.nextTick(done);
Expand Down
1 change: 1 addition & 0 deletions tests/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"replication": {
"topic": "backbeat-test-replication",
"replicationStatusTopic": "backbeat-test-replication-status",
"monitorReplicationFailures": true,
"groupId": "backbeat-test-replication-group",
"destination": {
"bootstrapList": [
Expand Down

0 comments on commit b985d3c

Please sign in to comment.