File tree Expand file tree Collapse file tree
packages/cli/src/cli/cmd/run Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " lingo.dev " : minor
3+ ---
4+
5+ Remove hardcoded concurrency limit
Original file line number Diff line number Diff line change @@ -10,14 +10,22 @@ import { commonTaskRendererOptions } from "./_const";
1010import createBucketLoader from "../../loaders" ;
1111import { createDeltaProcessor , Delta } from "../../utils/delta" ;
1212
13- const MAX_WORKER_COUNT = 10 ;
13+ const WARN_CONCURRENCY_COUNT = 30 ;
1414
1515export default async function execute ( input : CmdRunContext ) {
1616 const effectiveConcurrency = Math . min (
1717 input . flags . concurrency ,
1818 input . tasks . length ,
19- MAX_WORKER_COUNT ,
2019 ) ;
20+
21+ if ( effectiveConcurrency >= WARN_CONCURRENCY_COUNT ) {
22+ console . warn (
23+ chalk . yellow (
24+ `⚠️ High concurrency (${ effectiveConcurrency } ) may cause failures in some environments.` ,
25+ ) ,
26+ ) ;
27+ }
28+
2129 console . log ( chalk . hex ( colors . orange ) ( `[Localization]` ) ) ;
2230
2331 return new Listr < CmdRunContext > (
You can’t perform that action at this time.
0 commit comments