mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Sending HipChat Tower messages upon server death, I hope.
This commit is contained in:
parent
5bae839288
commit
95eade4268
1 changed files with 15 additions and 9 deletions
|
@ -5,7 +5,13 @@ if cluster.isMaster
|
|||
for i in [0...numCPUs]
|
||||
cluster.fork()
|
||||
cluster.on 'exit', (worker, code, signal) ->
|
||||
console.log 'worker ' + worker.id + ' died'
|
||||
message = "Worker #{worker.id} died! Heart attack takin' a dump."
|
||||
console.log message
|
||||
try
|
||||
hipchat = require './server/hipchat'
|
||||
hipchat.sendHipChatMessage(message, ['tower'], {papertrail: true})
|
||||
catch error
|
||||
console.log "Couldn't send HipChat message on server death:", error
|
||||
cluster.fork()
|
||||
else
|
||||
require('coffee-script')
|
||||
|
|
Loading…
Reference in a new issue