Skip to content

Conversation

@michaelfarrell76
Copy link
Member

@michaelfarrell76 michaelfarrell76 commented Aug 16, 2025

Related Issues

These helper functions are picked out of the above PR - these functions will make it possible to run cli commands with maximum concurrency on a machine by using separate processes.

Changes

  • Updates code to use node:fs and node:path instead of fs and path
  • New helper src/lib/pooling/assignWorkToWorker.ts - this function pulls a job off of a parallel job queue and sends the message to assign the job to the worker
  • New helper src/lib/pooling/computePoolSize.ts helps to determine what level of concurrency to use - either whatever is use specified or defaults to number of CPUS
  • New helper src/lib/pooling/ensureLogFile.ts will ensure that a log file exists at a file location - useful before appending to the log file
  • New helper src/lib/pooling/openTerminal.ts allows for running new commands in a terminal across macos, linux and windows.

@michaelfarrell76 michaelfarrell76 changed the title Adds some helper functions for using separate process concurrency pools. Adds some helper functions for using concurrency pools. Aug 16, 2025
@michaelfarrell76 michaelfarrell76 requested a review from Jahvy August 16, 2025 21:21
@michaelfarrell76
Copy link
Member Author

thanks G @JonnavithulaGirish <3

@michaelfarrell76 michaelfarrell76 merged commit 365eec3 into main Aug 16, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants