mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-03 12:27:19 -05:00
Move worker died to eng channel
This commit is contained in:
parent
913565397b
commit
ef8b11601f
1 changed files with 2 additions and 2 deletions
|
@ -73,11 +73,11 @@ if cluster.isMaster
|
||||||
for i in [0...numCPUs]
|
for i in [0...numCPUs]
|
||||||
cluster.fork()
|
cluster.fork()
|
||||||
cluster.on 'exit', (worker, code, signal) ->
|
cluster.on 'exit', (worker, code, signal) ->
|
||||||
message = "Worker #{worker.id} died! #{deaths[Math.floor Math.random() * deaths.length]}"
|
message = "Worker #{worker.id} died!"
|
||||||
console.log message
|
console.log message
|
||||||
try
|
try
|
||||||
slack = require './server/slack'
|
slack = require './server/slack'
|
||||||
slack.sendSlackMessage(message, ['ops'], {papertrail: true})
|
slack.sendSlackMessage(message, ['eng'], {papertrail: true})
|
||||||
catch error
|
catch error
|
||||||
console.log "Couldn't send Slack message on server death:", error
|
console.log "Couldn't send Slack message on server death:", error
|
||||||
cluster.fork()
|
cluster.fork()
|
||||||
|
|
Loading…
Reference in a new issue