Skip to content

Comments

feat: reflect LS status immediately after running start and stop commands#26

Merged
skyrpex merged 29 commits intomainfrom
reflect-localstack-status-immediately-after-running-start-and-stop-commands
Sep 4, 2025
Merged

feat: reflect LS status immediately after running start and stop commands#26
skyrpex merged 29 commits intomainfrom
reflect-localstack-status-immediately-after-running-start-and-stop-commands

Conversation

@skyrpex
Copy link
Collaborator

@skyrpex skyrpex commented Sep 4, 2025

  • Make status bar reflect "starting" or "stopping" immediately after running LocalStack start/stop commands.
  • Add heuristic to handle LocalStack CLI failures by inspecting output text.

This one is delicate: we synthetically force the container status to "running", "stopping" and "stopped" to give the user the immediate effect of their actions on the status bar.

In order to do so I refactored a bit our spawn helpers, no big deal, they are now just a bit more complex. On top of that, our localstack start --detached invocation is a bit more complex: we look for a specific error string in its stderr output - in that case, we kill the process and throw an error. In turn, we force back the container status to "stopped".

Copy link
Collaborator

@tiurin tiurin left a comment

Choose a reason for hiding this comment

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

I have a couple of questions to clarify but overall great fixes! 👏

@skyrpex skyrpex force-pushed the reflect-localstack-status-immediately-after-running-start-and-stop-commands branch from 0b244d2 to d988a5a Compare September 4, 2025 14:28
…top commands

Makes the status bar display that LS is either starting or stopping 
immediately after executing the respective LS commands.
…top commands

Makes the status bar display that LS is either starting or stopping 
immediately after executing the respective LS commands.
…top commands

Makes the status bar display that LS is either starting or stopping 
immediately after executing the respective LS commands.
…top commands

Makes the status bar display that LS is either starting or stopping 
immediately after executing the respective LS commands.
@skyrpex skyrpex force-pushed the reflect-localstack-status-immediately-after-running-start-and-stop-commands branch from d988a5a to 3c4c3da Compare September 4, 2025 14:30
Copy link
Collaborator

@tiurin tiurin left a comment

Choose a reason for hiding this comment

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

👏

@skyrpex skyrpex merged commit 1f11a2d into main Sep 4, 2025
3 checks passed
@skyrpex skyrpex deleted the reflect-localstack-status-immediately-after-running-start-and-stop-commands branch September 4, 2025 14:34
@anisaoshafi anisaoshafi mentioned this pull request Sep 4, 2025
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