mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +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:
parent
f24e777961
commit
4896ca406e
10 changed files with 189 additions and 3 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue