Skip to content

Commit

Permalink
Flow: remove max_workers setting (#25349)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kassens authored and rickhanlonii committed Oct 5, 2022
1 parent 77ced53 commit 470a9cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/flow/config/flowconfig
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions scripts/flow/createFlowConfigs.js
Expand Up @@ -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%',
`
Expand Down

0 comments on commit 470a9cd

Please sign in to comment.