Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Notify service clients about upcoming auto-stop #1026

Closed
forman opened this issue Dec 9, 2021 · 0 comments · Fixed by #1027
Closed

Notify service clients about upcoming auto-stop #1026

forman opened this issue Dec 9, 2021 · 0 comments · Fixed by #1027
Assignees

Comments

@forman
Copy link
Member

forman commented Dec 9, 2021

This is the backend counterpart for CCI-Tools/cate-app#164.

Expected behavior

Users of the Cate App backend service should be informed about upcoming auto-shutdown due to inactivity, given that auto-shutdown has been enabled for the service (e.g. cate-webapi-start --auto-stop-after 3600 ...).

Actual behavior

The service stops without notification just leaving a log message.

Steps to reproduce the problem

  1. Run cate-webapi-start --auto-stop-after 100 ... on localhost.
  2. Start Cate App for local service.
  3. In Cate App do nothing else, just wait for "Connection closed" message.

Implementation

Use WebSocket to send JSON RPC message to clients containing time left until auto-close service and time of service inactivity.

Specifications

Cate 3.1.1, Cate App 3.1.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant