Skip to content

Commit

Permalink
Merge branch 'master' of github.com:actionhero/actionhero
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Tahler committed Feb 21, 2018
2 parents 936d47c + 0edda42 commit 5be607f
Show file tree
Hide file tree
Showing 8 changed files with 693 additions and 637 deletions.
8 changes: 4 additions & 4 deletions bin/methods/start/lib/actionheroCluster.js
Expand Up @@ -226,20 +226,20 @@ module.exports = class ActionHeroCluster {
})

if (
this.options.expectedWorkers < this.workers.length &&
this.options.expectedWorkers < this.workers.length &&
this.workers.length >= 1 &&
!stateCounts.stopping &&
!stateCounts.stopped &&
!stateCounts.restarting
) {
) {
worker = this.workers[(this.workers.length - 1)]
this.log('signaling worker #' + worker.id + ' to stop', 'info')
worker.stop()
} else if (
(this.options.expectedWorkers > this.workers.length) &&
(this.options.expectedWorkers > this.workers.length) &&
!stateCounts.starting &&
!stateCounts.restarting
) {
) {
workerId = 1
this.workers.forEach((w) => {
if (w.id === workerId) { workerId++ }
Expand Down
2 changes: 1 addition & 1 deletion classes/server.js
Expand Up @@ -166,7 +166,7 @@ module.exports = class MyServer extends Server {
[
'start',
'stop',
'sendFile', // connection, error, fileStream, mime, length, lastModified
'sendFile', // connection, error, fileStream, mime, length, lastModified
'sendMessage', // connection, message
'goodbye'
].forEach((method) => {
Expand Down
2 changes: 1 addition & 1 deletion config/tasks.js
Expand Up @@ -8,7 +8,7 @@ exports['default'] = {
// Logging levels of task workers
workerLogging: {
failure: 'error', // task failure
success: 'info', // task success
success: 'info', // task success
start: 'info',
end: 'info',
cleaning_worker: 'info',
Expand Down
2 changes: 1 addition & 1 deletion initializers/redis.js
Expand Up @@ -105,7 +105,7 @@ await api.redis.publish(payload)
requestId: requestId,
method: method,
connectionId: connectionId,
args: args // [1,2,3]
args: args // [1,2,3]
}

await api.redis.publish(payload)
Expand Down

0 comments on commit 5be607f

Please sign in to comment.