From b34fee514ab5773c317c55d3d8c021ebedb74ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 4 Jul 2022 12:47:25 +0200 Subject: [PATCH] OAPI: include worker's "last seen" timestamp Include the worker's "last seen" timestamp in the worker summary, details, and SocketIO updates. This is different from the "updated" timestamp, which indicates the last time the worker entry in the database was updated (which could also be in response to a status change request from the web interface). --- pkg/api/flamenco-openapi.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkg/api/flamenco-openapi.yaml b/pkg/api/flamenco-openapi.yaml index c5aa5932..755f20f4 100644 --- a/pkg/api/flamenco-openapi.yaml +++ b/pkg/api/flamenco-openapi.yaml @@ -1568,6 +1568,10 @@ components: type: string format: date-time description: Timestamp of last update + "last_seen": + type: string + format: date-time + description: Last time this worker was seen by the Manager. "status": { $ref: "#/components/schemas/WorkerStatus" } "previous_status": { $ref: "#/components/schemas/WorkerStatus" } "status_change": @@ -1626,10 +1630,10 @@ components: # type: string # format: uuid # description: The worker's current/last-worked-on task. - # "last_seen": - # type: string - # format: date-time - # description: Last time this worker was seen by the Manager. + "last_seen": + type: string + format: date-time + description: Last time this worker was seen by the Manager. "version": type: string description: Version of Flamenco this Worker is running