-
Notifications
You must be signed in to change notification settings - Fork 3
CLI to spawn Workers #16
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfestHacktoberfest 2020Hacktoberfest 2020
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfestHacktoberfest 2020Hacktoberfest 2020
Type
Fields
Give feedbackNo fields configured for issues without a type.
CLI to spawn Workers
The scripts used to spawn workers consist of a lot of repetitive code, it would be really useful to have a CLI instead.
The CLI could have options like:
code-executor spawn-worker --name myExecutor -n 10 --redis "redis://127.0.0.1:6379"This spawns 10 workers on the server with the redis instance for managing the queue located at
redis://127.0.0.1:6379.This is just an example of the bare minimum requirement. Feel free to suggest features that could be included in the CLI 💯
Proposed structure
I'd propose you have a file
bin/code-executor.jswhich just imports the CLI fromdist/src/cli.jsand runs it.dist/src/cli.jsis the build output fromsrc/cli.ts, which has the CLI in typescript.