Skip to content

benhid/go-worker

Repository files navigation

worker 🍱

CI Go Report Card License: MIT

Run jobs using containerized functions. The worker keeps a pool of warm containers to reduce overhead, so new job are executed as they arrive.

Code execution is handled by the agent.

Get started

Build

go build -v

Run

Start worker with:

./worker [-listen ":8090"] [-image "hello-python"] [-min-size 10]

Usage

curl -X POST -H "Content-Type: application/json" \
  -d '{"ID": "1", "Payload": "hello world"}' \
  http://0.0.0.0:8090/run