Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit concurrency of non-persistent tasks #30

Open
gajus opened this issue Mar 22, 2023 · 0 comments
Open

Limit concurrency of non-persistent tasks #30

gajus opened this issue Mar 22, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@gajus
Copy link
Owner

gajus commented Mar 22, 2023

There should be a way to ensure that we don't run all triggers at once.

This is particularly relevant for when Turbowatch starts.

At the moment, if we load all scripts, such as turbowatch **/turbowatch.ts this will immediately fire all triggers that are required to run at start. That produces high congestion of CPU/logs. We should provide a reasonable (configurable) default, such as 10.

@gajus gajus added the enhancement New feature or request label Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant