mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 06:54:03 +02:00
Reap dead devices using timeouts. Previously, if a provider died without being able to clean up properly, the device would stay as a ghost.
This commit is contained in:
@@ -65,6 +65,9 @@ module.exports = function(options) {
|
||||
})
|
||||
})
|
||||
// Worker messages
|
||||
.on(wire.DeviceHeartbeatMessage, function(channel, message) {
|
||||
dbapi.updateDeviceHeartbeat(message.serial)
|
||||
})
|
||||
.on(wire.JoinGroupMessage, function(channel, message, data) {
|
||||
dbapi.setDeviceOwner(message.serial, message.owner)
|
||||
appDealer.send([channel, data])
|
||||
|
||||
Reference in New Issue
Block a user