dubeejw commented on a change in pull request #214: WIP Support multiple workers
URL:
https://github.com/apache/incubator-openwhisk-package-kafka/pull/214#discussion_r139177041
##########
File path: action/lib/Database.js
##########
@@ -60,4 +63,39 @@ module.exports = function(dbURL, dbName) {
});
})
};
+
+ this.getTriggerAssignment = function(workers) {
+ // a map between available workers and their number of assigned
triggers
+ // values will be populated with the results of the assignment view
+ console.log(`Available workers: ${JSON.stringify(workers, null, 2)}`);
Review comment:
This log statement seems misleading since `worker0` is used if the workers
parameter has an empty array as an argument.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services