mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 22:35:25 +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:
@@ -1,3 +1,5 @@
|
||||
var r = require('rethinkdb')
|
||||
|
||||
module.exports = {
|
||||
users: {
|
||||
primaryKey: 'email'
|
||||
@@ -8,6 +10,7 @@ module.exports = {
|
||||
ownerEmail: function(device) {
|
||||
return device('owner')('email')
|
||||
}
|
||||
, lastHeartbeatAt: null
|
||||
}
|
||||
}
|
||||
, logs: {
|
||||
|
||||
Reference in New Issue
Block a user