Skip to content

feat(bson-parsing): terminate worker if execution exceeds 2mins COMPASS-11147 - #893

Draft
mabaasit wants to merge 1 commit into
restrict-worker-scopefrom
timout-long-running-worker
Draft

mabaasit wants to merge 1 commit into
restrict-worker-scopefrom
timout-long-running-worker

Conversation

@mabaasit

@mabaasit mabaasit commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Description

COMPASS-11147

Open Questions

Checklist


Stack created with GitHub Stacks CLIGive Feedback 💬

@mabaasit
mabaasit requested review from a team as code owners September 21, 2026 08:51
@mabaasit
mabaasit added this pull request to stack #894 September 21, 2026 08:51
@mabaasit
mabaasit requested review from Anemy and removed request for a team September 21, 2026 08:51
/** Close the worker after being idle for 30sec */
const IDLE_TIMEOUT_MS = 30_000;
/** Default execution timeout for worker requests */
const DEFAULT_EXECUTION_TIMEOUT_MS = 120_000;

@Anemy Anemy Sep 21, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should consumers be able to pass this timeout? Will 0 indicate no timeout?

@mabaasit mabaasit Sep 22, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea, will implement this.

@mabaasit mabaasit changed the title feat(bson-parsing): terminate worker if execution exceeds 2mins feat(bson-parsing): terminate worker if execution exceeds 2mins COMPASS-11147 Sep 22, 2026
@mabaasit
mabaasit marked this pull request as draft September 22, 2026 08:58
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.

2 participants