Skip to content

Add restart command#193

Merged
carole-lavillonniere merged 2 commits intomainfrom
des-206-implement-lstk-restart-command
Apr 23, 2026
Merged

Add restart command#193
carole-lavillonniere merged 2 commits intomainfrom
des-206-implement-lstk-restart-command

Conversation

@gtsiolis
Copy link
Copy Markdown
Member

Adds restart command that stops the running emulator and starts it again in a single command.

The command runs the full stop and start lifecycle: stops the container, re-validates the auth token and license, pulls the image if needed, and waits for the health endpoint before returning. This ensures restart is always safe (no stale state, no skipped validation) rather than just bouncing the container.

Screenshot 2026-04-22 at 16 52 24

Copy link
Copy Markdown
Contributor

@anisaoshafi anisaoshafi left a comment

Choose a reason for hiding this comment

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

LGTM, tested and looks good 🚀

Was thinking if the customers would expect restart to re-pull the image. If for some reasons we introduce some API changes (reflecting AWS changes or sth else), or different behaviours that previous to restart worked, can be confusing for the customer, plus the extra wait for docker pull.
I am in favour of upgrading though, just a random thought.

Copy link
Copy Markdown
Collaborator

@carole-lavillonniere carole-lavillonniere left a comment

Choose a reason for hiding this comment

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

Looks good 👏
Pushed a small commit to make sure we emit the telemetry events for the new command 76c77dc

Mirrors the stop test's pattern of checking both lstk_lifecycle and
lstk_command events, since restart emits lifecycle events for both the
stop and start phases.
@carole-lavillonniere carole-lavillonniere force-pushed the des-206-implement-lstk-restart-command branch from 50a60a5 to 76c77dc Compare April 23, 2026 08:55
@carole-lavillonniere carole-lavillonniere merged commit 9a45e3c into main Apr 23, 2026
7 checks passed
@carole-lavillonniere carole-lavillonniere deleted the des-206-implement-lstk-restart-command branch April 23, 2026 09:05
@gtsiolis
Copy link
Copy Markdown
Member Author

Thanks for adding commits and merging, @carole-lavillonniere! 🏀

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.

3 participants