Add Fairness billing examples to pricing docs#4427
Conversation
- Add Fairness pricing section to pricing.mdx under Other pricing, with worked examples covering: no fairness keys in use, mixed workflows, calendar-hour billing boundaries, and backlogged tasks - Update actions.mdx Fairness one-liner to link to the new section and to the Task Queue Fairness feature docs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
||
| **Fairness enabled, but no fairness keys in use** | ||
|
|
||
| If Fairness is enabled but no Workflows or Activities send `fairness_key` metadata, all tasks continue to route as before. The surcharge still applies: billing is determined by whether Fairness is enabled on the Namespace. |
There was a problem hiding this comment.
'Fairness Actions are still applied' instead of 'The surcharge still applies'
There was a problem hiding this comment.
Done — changed to "Fairness Actions are still applied".
|
|
||
| If Fairness is enabled but no Workflows or Activities send `fairness_key` metadata, all tasks continue to route as before. The surcharge still applies: billing is determined by whether Fairness is enabled on the Namespace. | ||
|
|
||
| | Hour | Actions in Namespace | Fairness enabled? | Fairness surcharge | Total billed Actions | |
There was a problem hiding this comment.
Done — table header changed to "Fairness Actions".
|
|
||
| If each queue generates 5,000 Actions in a given hour (10,000 total), the surcharge applies to the full 10,000, not only to the 5,000 from `payment-queue`. | ||
|
|
||
| | Hour | Actions from payment-queue | Actions from notification-queue | Total Namespace Actions | Surcharge (10%) | Total billed Actions | |
There was a problem hiding this comment.
Just label as 'Fairness' to align with previous table
There was a problem hiding this comment.
Done — relabeled to "Fairness" to align with previous table.
|
|
||
| Suppose Fairness is enabled at 2:45 PM and disabled at 3:20 PM, then re-enabled at 4:50 PM. Billing uses 1-hour windows with no proration: if Fairness is on at any point during a window, the full window is charged. Each re-enable restarts the 1-hour minimum. | ||
|
|
||
| | Time (UTC) | Event | Billing window affected | Notes | |
There was a problem hiding this comment.
Are lines 374 through 380 really needed?
There was a problem hiding this comment.
Removed — cut this entire example (calendar-hour boundaries) as it covers general timing concepts independent of fairness.
|
|
||
| **Enabling Fairness with a backlog of existing work** | ||
|
|
||
| Suppose `your-namespace` has a large backlog of queued tasks that were submitted before Fairness was enabled, and Fairness is turned on at 10:00 AM. If workers process 30,000 Actions from backlogged tasks and 10,000 new Actions during the 10:00–11:00 AM window, the surcharge applies to all 40,000. Billing is based on when Actions are processed, not when they were submitted. |
There was a problem hiding this comment.
can we shorten this section?
There was a problem hiding this comment.
Removed — cut this entire example (backlog scenario) for the same reason.
tlotemporal
left a comment
There was a problem hiding this comment.
Left a few comments. Note we should not call this a 'surcharge', these are just 'Fairness' or 'Fairness Actions'.
Additionally I feel like we can cut down/cut out the last two examples as they deal with more general timing concepts that are independent of fairness.
Remove examples 3 (calendar-hour boundaries) and 4 (backlog scenario) per reviewer feedback that they cover general timing concepts independent of fairness. Replace "surcharge" with "Fairness Actions" throughout. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
### Fairness pricingsection topricing.mdxunder## Other pricing, consistent with how TRU and High Availability billing are documentedactions.mdxto link to the new section and to the Task Queue Fairness feature docsTest plan
yarn start— verify Fairness pricing section renders correctly at/cloud/pricing#fairness-pricingactions.mdxresolves to/develop/task-queue-priority-fairness#task-queue-fairnessyarn build— no broken links🤖 Generated with Claude Code
┆Attachments: EDU-6198 Add Fairness billing examples to pricing docs