Skip to content

CLI to spawn Workers #16

Description

@roerohan

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.js which just imports the CLI from dist/src/cli.js and runs it.
dist/src/cli.js is the build output from src/cli.ts, which has the CLI in typescript.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions