Enqueue a job
The hello world. Add one job to a queue — the server stores it, a remote worker picks it up and runs it, and the result lands back here.
To run1
greet Ada
greet
Delayed0
Queued0
Active0
Completed0
Failed0
the SDK code this runs
import { Queue } from "@nextmq/sdk"
const queue = new Queue("demo-welcome")
await queue.add("greet", { name: "Ada" })
// → a remote Worker("demo-welcome") runs it and returns a value