mirror of
https://github.com/dagucloud/dagu.git
synced 2026-12-05 05:32:51 +00:00
An admin can create, list and delete worker invites, ask whether the
coordinators can accept workers from other hosts, and remove a worker
that joined with an invite through the REST API:
- GET and POST /api/v1/workers/invites
- DELETE /api/v1/workers/invites/{inviteId}
- GET /api/v1/workers/join-readiness
- POST /api/v1/workers/removals
Every route needs the admin role, checked before input validation, and
none of them is forwarded to a remote node. An invite address must be
host:port with a hostname or an IP literal as host; dagu worker invite
checks the same rule. A refusal carries a stable reason in
details.reason so a client can explain it without matching messages.
/workers reports each worker's connection, certificate and invite, and
leaves out workers whose certificate is revoked.
Part of #4292 (T16).