DEVOPS

Cloudflare Worker canary rollout gated by Axiom error rate

Promotes a new Cloudflare Worker version through staged traffic percentages, querying Axiom for the canary's error rate at each step and rolling back automatically if errors…

CategoryDevOps
Enginesim
Difficultyadvanced
Triggerwebhook
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDeploy webhook with new + stable version IDsHTTP webhook
  • ActionShift traffic split to next canary stageCloudflareCloudflare
  • ActionQuery Axiom for canary vs. stable error rateAxiom
  • LogicCompare error-rate delta to regression threshold
  • ActionRevert split to 100% stable if breachedCloudflareCloudflare
  • OutputPost promotion or rollback to DiscordDiscordDiscord

What it does

Runs a progressive-delivery canary for a Cloudflare Worker. After you deploy a new Worker version, this gradually shifts traffic to it (5% -> 25% -> 50% -> 100%), and between each step it asks Axiom how the canary version is behaving. If the new version's error rate exceeds the old version's by your threshold, traffic is reverted to the last good version and the team is paged.

When to use it

Use it whenever you ship Worker changes that touch request handling, routing, or upstream calls and you cannot afford a bad version taking 100% of traffic. It replaces eyeballing a dashboard after deploy with an automated gate.

How it works

  1. 1A deploy webhook fires with the new Worker version ID and the previous (stable) version ID.
  2. 2Cloudflare updates the version split to the next stage percentage.
  3. 3The flow waits for the bake window, then queries Axiom for 5xx-rate of the canary version vs. the stable version over that window.
  4. 4A logic step compares the delta against your max-regression threshold.
  5. 5If healthy, it advances to the next stage; if the delta is breached, Cloudflare reverts the split to 100% stable.
  6. 6A Discord message reports promotion or rollback with the measured error rates.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect CloudflareWorkers, Pages, R2, KV — the edge stack.
  3. 3
    Connect AxiomLog streams, queries, dashboards.
  4. 4
    Connect DiscordCommunity channels + voice + bots.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.