Queue a recipe and start a worker
Run durable recipes from a queue, a schedule or a verified webhook.
Start with the two version-3 files from Save and resume a recipe. Add the blocks below to outpost.yaml. Declarations alone start nothing: a service runs only through recipe serve.
Declare the queue and worker
Section titled “Declare the queue and worker”This SQLite queue stores jobs locally. The review handler executes your checkpointed recipe. Keep the existing checkpoint stores declaration.
Publish and process a job
Section titled “Publish and process a job”The first command only enqueues work and prints its receipt. The second starts the worker and stays active until Ctrl+C. For this approval recipe, the execution waits at its gate; inspect it with recipe status --run-id change-42 and the same --file and --config.
The default job ID is recipe:<handler>:<run-id>. Repeated publication converges on the same request. To enqueue a later resume, use a new --job-id; preserve the intended effect key with --idempotency-key. External services must deduplicate their own effects.
For HTTP or BullMQ, replace the queue with the appropriate queue component. See queue ownership and leases; the worker closes owned queues, not borrowed extensions.
Publish on a schedule
Section titled “Publish on a schedule”Add these top-level declarations. This recipe has no inputs, so its scheduled input is empty. A recipe with parameters uses their names here.
Add clock inside the existing services mapping, beside worker. Start it in another terminal with recipe serve --file recipe.yaml --config outpost.yaml --service clock.
The clock publishes jobs; the worker executes them. Slot IDs deduplicate restarts, and only the latest eligible missed slot is caught up. See cron scheduling for time zones and late slots.
Publish from a verified webhook
Section titled “Publish from a verified webhook”Add these top-level declarations and set GITHUB_WEBHOOK_SECRET on the host. This route accepts the selected pull-request events and submits the same recipe with no inputs.
Add webhooks under the existing services mapping. Start it separately with --service webhooks. The server binds to localhost by default and verifies requests before queue publication.
Use webhook deployment for public HTTPS and provider setup. Verified sender identity does not authorize approval gates. GitLab, Slack and Standard Webhooks use their own source components.
Wait for a queued result
Section titled “Wait for a queued result”A recipe can use a queued task to wait for a handler result. See defineQueuedTask for polling, cancellation, quota and usage behavior; declare queue references in configuration and build the handler payload with arguments.
Local and real Redis tests cover service composition. Hosted Redis, public webhook delivery and live cloud restoration need separate validation.

