Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
spindle: cap total concurrent workflow memory via semaphore master
Add MaxConcurrentWorkflows config (SPINDLE_SERVER_MAX_CONCURRENT_WORKFLOWS, default 8) that limits how many workflow containers run simultaneously. Combined with the 6 GiB per-container limit this keeps total container memory under ~48 GiB on the current 64 GiB host. A channel-based semaphore is initialized in New() and passed into StartWorkflows, where each workflow goroutine acquires a slot before calling SetupWorkflow and releases it on exit. Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
Author Anirudh Oppiliappan Date (May 4, 2026, 12:26 PM UTC) Commit 9cfc3f59 9cfc3f59159d25ff2b685a96c82ea94a350c05ef Parent ccca4347 ccca4347de2455f773e1093de5bc13b3cb69b2a8 Change ID smmqnmyn smmqnmynkzoowowzvuysorkzutnmrllm