MODE=agentAGENT_TOKEN=<token>BASE_INTERNAL_URL=<base url>
to a worker to have it act as an HTTP agent worker.
INIT_SCRIPT, if needed, must be passed as an env variable.
flow and dependency
(or flow-<workspace> and dependency-<workspace> if
using workspace-specific default tags), because agent workers
cannot run dependency jobs
nor execute the
flow state machine. They can, however, run subjobs within flows.
POST /api/agent_workers/create_agent_token
{`
"worker_group": "agent",
"tags": ["tag1", "tag2"],
"exp": 1717334400
`}
The JSON response will contain the generated JWT token.