Skip to content
Discussion options

You must be logged in to vote

Hey @arthurvanl!

Investigated this and confirmed the issue — SandboxedWorker child processes were never terminated when idle. With concurrency: 3 and maxMemory: 512, that's ~1.5 GB of RAM sitting idle doing nothing.

Root cause: The existing idleTimeout option (default: 0 = disabled) stops the entire pool, which also prevents new cron jobs from being processed. There was no mechanism to recycle individual worker processes.

Fixed in v2.6.12 — added per-worker idle recycling via new idleRecycleMs option:

  • Default: 30 seconds — idle worker subprocesses are automatically terminated after 30s of inactivity
  • At least 1 worker stays alive for fast response
  • Workers are lazily respawned on demand wh…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arthurvanl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants