Adding workers
interface WorkerMetadata {
queue: string;
endpoint: {
url: string;
method: "post" | "get" | "put" | "delete" | "patch";
headers?: Record<string, string>;
timeout?: number; // max allowed duration in milliseconds
}
// .. more options
}curl --location 'http://localhost:8080/workers' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 1234' \
--data '{
"queue": "my-test-queue",
"endpoint": {
"url": "http://mydomain.dev",
"method": "post"
}
}'Last updated