Closed snakus closed 3 years ago
Looking at the code, that's a different status, it only has 'RUNNING', 'PAUSED' and 'CONFIG_UPDATED' values. You're looking for 'last_status_update' which is the time (amount of seconds from the start of the epoch) when the client was in contact last time in comparison with 'current_server_time' at the start of the JSON.
So i must write function to check last_status_update time for worker ?
Yup, with the threshold of 60 seconds to match the dashboard data.
Ok i writed wait to see if it works Thank You.
When I query http://nas.ntpt.pl:3344/admin/getClientStatusList all workes RUNNING even if some of them are offline