Skip to content

Commit

Permalink
🐝 (svg tester) set max number of workers (#3602)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann authored May 13, 2024
1 parent 23e6d3f commit 938c2ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devTools/svgTester/verify-graphs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ async function main(args: parseArgs.ParsedArgs) {

const pool = workerpool.pool(__dirname + "/worker.js", {
minWorkers: 2,
maxWorkers: 12,
})

// Parallelize the CPU heavy verification using the workerpool library
Expand Down Expand Up @@ -150,7 +151,7 @@ Charts to process:
Chart configurations to test:
--query-str, -q Grapher query string to verify charts with a specific configuration, e.g. tab=chart&stackMode=relative
--all-views For each Grapher, verify SVGs for all possible chart configurations
Other options:
--suffix, -s Suffix for different SVG files to create <NAME><SUFFIX>.svg files - useful if you want to set output to the same as reference
--rm-on-error Remove output files where we encounter errors, so errors are apparent in diffs
Expand Down

0 comments on commit 938c2ae

Please sign in to comment.