9 lines
266 B
Bash
Executable File
9 lines
266 B
Bash
Executable File
#!/bin/bash
|
|
# wq_my_queue — list dispatched items for a given agent (what Steve polls)
|
|
|
|
wq_my_queue() {
|
|
local agent="$1"
|
|
[[ -z "$agent" ]] && { echo "Usage: wq my-queue <agent>" >&2; exit 1; }
|
|
curl -sf "$API_URL/work?status=dispatched&agent=$agent" | jq .
|
|
}
|