-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
feat: add workerIdleMemoryLimit to support worker recycling in the event of node >16.11.0 memory leaks #13056
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
Changes from 3 commits
3e4c26b
833e429
7da8127
40a23cf
1961d65
d7f292f
8bfcd74
fd1be6f
233477e
19fb71c
e2a853d
ab6554d
207ae05
c4d2389
0f5c7bb
d35e4b9
daee499
fd96e78
576ca63
491b16c
479c123
ad238f2
e3e63e4
74ce892
8467b8b
6338419
d2acdc3
dea2ef2
44ff11d
6b3ba00
f208aa9
1ca06bc
c98dd32
c21b48e
33405a2
98f5e82
a1b647f
54dccb3
0f5da7d
debf034
4619055
da47b50
ba00b26
019c5d4
7239650
fdb4a66
3e3be99
9f9dff1
43f1054
791b7a5
f3db1cc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -327,6 +327,7 @@ export type InitialOptions = Partial<{ | |
| watchAll: boolean; | ||
| watchman: boolean; | ||
| watchPlugins: Array<string | [string, Record<string, unknown>]>; | ||
| workerIdleMemoryLimit: number; | ||
| }>; | ||
|
|
||
| export type SnapshotUpdateState = 'all' | 'new' | 'none'; | ||
|
|
@@ -420,6 +421,7 @@ export type GlobalConfig = { | |
| path: string; | ||
| config: Record<string, unknown>; | ||
| }> | null; | ||
| workerIdleMemoryLimit?: number; | ||
| }; | ||
|
|
||
| export type ProjectConfig = { | ||
|
|
@@ -478,6 +480,7 @@ export type ProjectConfig = { | |
| transformIgnorePatterns: Array<string>; | ||
| watchPathIgnorePatterns: Array<string>; | ||
| unmockedModulePathPatterns?: Array<string>; | ||
| workerIdleMemoryLimit?: number; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be part of global config, not project
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can see the case for both. You may want to set a sensible global default perhaps running on a machine with known memory usage limitations but then configure specifically for projects where you may use less threads and allow more memory. In all honesty I could go either way, if you want it removing I can remove it. |
||
| }; | ||
|
|
||
| export type Argv = Arguments< | ||
|
|
@@ -571,5 +574,6 @@ export type Argv = Arguments< | |
| watchAll: boolean; | ||
| watchman: boolean; | ||
| watchPathIgnorePatterns: Array<string>; | ||
| workerIdleMemoryLimit: number; | ||
| }> | ||
| >; | ||
Uh oh!
There was an error while loading. Please reload this page.