Skip to content

Add self restarts for workstations#646

Merged
RayofLightz merged 3 commits intodevelopmentfrom
add-lock-to-indv-ctr-start-stop
Jan 15, 2026
Merged

Add self restarts for workstations#646
RayofLightz merged 3 commits intodevelopmentfrom
add-lock-to-indv-ctr-start-stop

Conversation

@RayofLightz
Copy link
Contributor

Does two main things of importance

  1. Gives users the ability to restart their own workstation
  2. Adds a redis lock for starting/restarting/deleting/recycling workspaces

@RayofLightz
Copy link
Contributor Author

I will say I am thinking about moving the lock acquisition from the db object creator into the actual run_container function. Just because that is more true to where the lock is actually needed and will reduce the need for constantly calling to redis for a lock. As create_indvidual_container gets called each time the vnc forwarder is hit.

ctr.stop(timeout=5)
except docker.errors.NotFound:
pass
redis_client = get_redis_client(3)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it 3

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is it should be connecting to its own redis "table"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk if its actually doing in practice though

@RayofLightz RayofLightz merged commit b4642ee into development Jan 15, 2026
4 checks passed
@RayofLightz RayofLightz deleted the add-lock-to-indv-ctr-start-stop branch January 15, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants