Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Add timeout parameter when running cast-sh #56

Open
monuelo opened this issue Nov 2, 2019 · 0 comments
Open

Add timeout parameter when running cast-sh #56

monuelo opened this issue Nov 2, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request UI

Comments

@monuelo
Copy link
Owner

monuelo commented Nov 2, 2019

Describe the solution you'd like
We must add an argument when running the cast, like python -m cast --timeout <seconds>. The <seconds> indicates the maximum time limit of the user session. When it expires, the connection must be closed.

We can also add some features for UI and Performance/Resource usage improvements:

  • Show a timer with the remaining time on the frontend (just if the session is timed).
  • Create another timeout for when the user stops using the app. (If the time limit was 10 minutes and the user just uses for 2, we'll have resources occupied for this user, without any utilization) So, an option is: close the connection if the user stops using the session before the time expires.

Additional context
The podcast application will run the cast-sh to provide an ephemeral environment. The cast runs as a Kubernetes job, so to turn it temporary, we need to put a timeout.

@monuelo monuelo added enhancement New feature or request UI labels Nov 2, 2019
@monuelo monuelo self-assigned this Nov 3, 2019
@monuelo monuelo mentioned this issue Nov 4, 2019
12 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request UI
Projects
None yet
Development

No branches or pull requests

1 participant