Note This project exists for demo purposes only and would not be suitable for production use.
A job worker pool service that provides a gRPC API to run arbitrary processes on Linux or Darwin hosts.
-
Run the gRPC server.
make run
-
Make requests to
localhost:50051
using a gRPC client.
Queue a job e.g. ping google.com
.
grpcurl -plaintext -d '{"command":{"cmd": "ping", "args": ["google.com"]}}' localhost:50051 rpc.service.v1.Service/QueueJob
Subscribe to job logs.
grpcurl -plaintext -d '{"job_id": "<JOB_ID_HERE>"}' localhost:50051 rpc.service.v1.Service/Subscribe
Stop a running job.
grpcurl -plaintext -d '{"job_id": "<JOB_ID_HERE>"}' localhost:50051 rpc.service.v1.Service/StopJob