Async & workflows
GA & BetaHobby, Pro, ScaleAccept Stripe and GitHub webhooks while your app is asleep — zero lost events
Verify and persist inbound webhooks before responding, schedule one-shot delayed invocations, run crons and pull-queue workers, and execute multi-step workflows with automatic retries and dead-letter recovery.
Register a durable Stripe webhook and inspect dead-letter entries
External webhook providers time out or fail deliveries if a sleeping backend takes too long to respond or hits a transient error. Gregale combines signature verification, durable queuing, delayed tasks, batch jobs, crons, and multi-step workflow recovery natively on the same platform.
curl -X POST https://api.gregale.dev/v1/apps/my-api/inbound-webhooks \
-H "Authorization: Bearer $GREGALE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "stripe-primary",
"provider": "stripe",
"signing_secret": "whsec_...",
"delivery_path": "/internal/stripe"
}'
# Inspect failed deliveries or delayed tasks in the unified dead-letter ledger
gregale dlq list my-api
Key capabilities
Persist-before-ack inbound webhooks
Verifies Stripe or generic HMAC-SHA256 signatures, deduplicates on X-Gregale-Event-ID, persists to the durable queue, and returns 202 Accepted before waking your app.
Delayed one-shot execution
Schedule a durable future invocation directly on Gregale without provisioning a separate Redis queue, cron daemon, or external scheduler.
Built-in jobs, crons & pull leases
Run HTTP crons or command tasks alongside your app, process large batches with jobs and artifacts, or lease messages directly from workers without an HTTP listener.
Stored & code-first durable workflows
Orchestrate multi-step execution with retries, waits, dependencies, scheduled triggers, workflow insights, and configurable recovery policies.
Typical PaaS vs. Gregale
| Capability | Typical PaaS | Gregale |
|---|---|---|
| Webhooks arriving while backend sleeps | May time out on cold boot or drop on 503 | Signature checked and queued durably before 202 Accepted |
| Delayed tasks, crons & retries | Requires Upstash QStash, Inngest, or Temporal add-ons | Built into the core API with unified dead-letter ledger |
| Pull-queue worker model | Manage SQS/RabbitMQ separately | Pull leases with capacity-controlled worker acks/nacks |
Deep-dive guides (5)
Receive Stripe and signed webhooks while scaled to zero
Gregale verifies Stripe and HMAC-SHA256 webhooks at the edge while your app is parked, persists them to a durable invocation queue, immediately responds `202 Accepted`, and delivers them with async retries and dead-letter replay on Hobby, Pro and Scale.
Write durable workflows that sleep for months without a running VM
Write durable retries, multi-day sleeps (30 days on Hobby, 90 on Pro, 365 on Scale), and event waits as plain async functions in Node, Python or Go that hold zero running VM while parked (in preview on Hobby and up).
Diagnose and recover failed stored workflows and missed schedules safely
Inspect failed DAG blockers with `gregale workflow diagnose`, resume mid-run preserving completed steps (`expected_resume_count`, up to 16 resumptions), opt into `catch_up: latest` schedules and run rate-limited recovery batches.
Scale-to-zero cron jobs, delayed tasks and event queues without an always-on server
Run DST-safe HTTP crons (Hobby 5, Pro 20, Scale 100 per app), 365-day delayed tasks and CloudEvents app inboxes with zero idle compute and at least 30 days of dead-letter queue retention on every plan.
Run SQS-style pull queue workers with zero-secret workload identity
Long-running workers consume Gregale queues without an HTTP listener using `leases`, `ack`, `nack` and `extend`, preview SDK auto-heartbeating (`consumeQueue`), `queue_depth` autoscaling and `gregale:queues` workload tokens that block staging/preview code.
Runnable starters & integrations (3)
Browse all templatesNode 22 · Inbound Webhooks
Durable Stripe & HMAC Webhooks
Stripe and generic HMAC-SHA256 inbound webhook receiver validating X-Faas-Invocation-Source, event deduplication, retries, and DLQ replay while parked.
Node 22 · Docker Compose · Postgres 17
Node.js API + Private Worker Queue
Multi-service Compose starter pairing a public Express API with a private worker and Postgres FOR UPDATE SKIP LOCKED job queue without Redis.
Python 3.13 · FastAPI · Postgres 17
FastAPI + Postgres Background Jobs
FastAPI HTTP API with a durable PostgreSQL job queue, leases, and exponential retries that scales both compute and database to zero when idle.
Documentation references
Questions
- Which webhook providers are supported out of the box?
Inbound webhook endpoints support stripe (verifying Stripe signatures with sealed secrets) and generic HMAC-SHA256 senders using X-Gregale-Event-ID, X-Gregale-Event-Type, X-Gregale-Timestamp, and X-Gregale-Signature headers.
- What happens if my app returns an error when delivering a queued webhook?
Failed deliveries retry according to your plan policy (3, 10, or 25 attempts on Hobby, Pro, and Scale) and land in the app dead-letter queue (gregale dlq list) for inspection and replay.
- Can I share one workflow recovery policy across scheduled and manual runs?
Yes. Stored workflows, delayed tasks, and async invocations expose run history, status insights, and policy-based recovery in both the dashboard and CLI.