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

Switch to using a single worker #497

Merged
merged 1 commit into from
Mar 8, 2024
Merged

Conversation

jeffmendoza
Copy link
Member

@jeffmendoza jeffmendoza commented Mar 7, 2024

Change "workers" cli option to be in pkg/config/operator and use ALLSTAR_NUM_WORKERS envvar with same default at 5. Update staging and prod config to use 1 worker to save concurrent memory usage.

Also, make sure to break out of enforceAll loop when context is cancelled.

Change "workers" cli option to be in pkg/config/operator and use
ALLSTAR_NUM_WORKERS envvar with same default at 5. Update staging and prod
config to use 1 worker to save concurrent memory usage.

Signed-off-by: Jeff Mendoza <jlm@jlm.name>
@jeffmendoza
Copy link
Member Author

cc @raghavkaul I'm looking to use this in prod, and I don't have a good way to use cli options now, jut env vars. The initial setup was for all operator config to be in pkg/config/operator. Some cli options were added later for test/debug purposes.

@jeffmendoza jeffmendoza merged commit 964a34c into ossf:main Mar 8, 2024
5 checks passed
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.

None yet

1 participant