Improve instances manegement

Resolve #4187
This commit is contained in:
syuilo 2019-02-08 20:56:16 +09:00
parent 72b85fc09f
commit 5e0eda9526
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
7 changed files with 65 additions and 11 deletions

View file

@ -126,7 +126,9 @@ export default async (job: bq.Job, done: any): Promise<void> => {
registerOrFetchInstanceDoc(user.host).then(i => {
Instance.update({ _id: i._id }, {
$set: {
latestRequestReceivedAt: new Date()
latestRequestReceivedAt: new Date(),
lastCommunicatedAt: new Date(),
isNotResponding: false
}
});