mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 07:38:20 -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]
|
||||
cluster.fork()
|
||||
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
|
||||
try
|
||||
slack = require './server/slack'
|
||||
slack.sendSlackMessage(message, ['ops'], {papertrail: true})
|
||||
slack.sendSlackMessage(message, ['eng'], {papertrail: true})
|
||||
catch error
|
||||
console.log "Couldn't send Slack message on server death:", error
|
||||
cluster.fork()
|
||||
|
|
Loading…
Reference in a new issue