GET /pending
The runs schedule.run parked, waiting for a time or a condition, and the ones that finished recently.
Details #
Returns a list, newest first: id, macro, macroName, at, when, expires, status (waiting, ran, expired or cancelled), endedAt and runId. Without a query only waiting runs are listed; ?all=1 adds the ones that finished in the last 7 days.
curl -s -H "Authorization: Bearer $TOKEN" "http://127.0.0.1:48080/pending?all=1"
Parameters #
curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X GET http://localhost/pending
The runs schedule.run parked, waiting for a time or a condition. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.