Flow: remove max_workers setting (#25349)

This was added back in #17880 to make CI pass for an unrelated change.

This limits the max worker setting to CI environments as removing the setting completely still seems to break on CircleCI.
This commit is contained in:
Jan Kassens 2022-09-29 14:49:41 -04:00 committed by GitHub
parent 8ee4f52989
commit abd7bcd8b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -39,7 +39,7 @@
untyped-type-import=error
[options]
server.max_workers=4
%CI_MAX_WORKERS%
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
esproposal.optional_chaining=enable

View File

@ -45,6 +45,11 @@ function writeConfig(renderer, rendererInfo, isServerSupported) {
});
const config = configTemplate
.replace(
'%CI_MAX_WORKERS%\n',
// On CI, we seem to need to limit workers.
process.env.CI ? 'server.max_workers=4\n' : '',
)
.replace(
'%REACT_RENDERER_FLOW_OPTIONS%',
`