Skip to content

fix: Respect autostart in mono mode#6731

Open
OliverGilan wants to merge 1 commit intoanomalyco:devfrom
mesa-dot-dev:og/mono-autostart
Open

fix: Respect autostart in mono mode#6731
OliverGilan wants to merge 1 commit intoanomalyco:devfrom
mesa-dot-dev:og/mono-autostart

Conversation

@OliverGilan
Copy link
Copy Markdown
Contributor

Keep mono-mode dev processes registered without starting them when autostart is disabled, and only start them once a later update enables autostart. Add monoplexer coverage for disabled startup, later enablement, and config change handling.


Problem

We have multiple components in our monorepo that SST manages and deploys but we do not need to run many of them in dev mode. Luckily sst already has a property called autostart for many components and DevCommand which prevents these components from running in dev mode unless manually triggered.

One of our engineers runs --mode=mono on sst dev which currently doesn't respect these autostart configs. This PR updates the dev command so it does respect autostart and doesn't run components in dev mode when unnecessary.

Keep mono-mode dev processes registered without starting them when autostart is disabled, and only start them once a later update enables autostart. Add monoplexer coverage for disabled startup, later enablement, and config change handling.
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.

1 participant