Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(tasks): publish compute rate card v1, effective 2026-08-21 (#82011)

Adam Bowkerad3806115041
diff --git a/products/tasks/backend/logic/services/sandbox_pricing.py b/products/tasks/backend/logic/services/sandbox_pricing.py
index a243b16b0227..318904bce2c4 100644
--- a/products/tasks/backend/logic/services/sandbox_pricing.py
+++ b/products/tasks/backend/logic/services/sandbox_pricing.py
@@ -1,6 +1,6 @@
from collections.abc import Sequence
from dataclasses import dataclass
-from datetime import datetime
+from datetime import UTC, datetime
from decimal import ROUND_UP, Decimal
from django.utils import timezone
@@ -49,7 +49,15 @@ class SandboxComputeCost:
return self.cpu_cost_usd + self.memory_cost_usd
-COMPUTE_RATE_CARDS: tuple[ComputeRateCard, ...] = ()
+COMPUTE_RATE_CARDS: tuple[ComputeRateCard, ...] = (
+ ComputeRateCard(
+ version="v1",
+ effective_at=datetime(2026, 8, 21, 16, tzinfo=UTC),
+ expires_at=None,
+ cpu_core_second_usd=Decimal("0.000075"),
+ memory_gib_second_usd=Decimal("0.000008"),
+ ),
+)
@dataclass(frozen=True)
diff --git a/products/tasks/backend/tests/test_sandbox_pricing.py b/products/tasks/backend/tests/test_sandbox_pricing.py
new file mode 100644
index 000000000000..3a70414cc006
--- /dev/null
+++ b/products/tasks/backend/tests/test_sandbox_pricing.py
@@ -0,0 +1,5 @@
+from products.tasks.backend.logic.services.sandbox_pricing import COMPUTE_RATE_CARDS, validate_compute_rate_cards
+
+
+def test_published_compute_rate_cards_are_valid() -> None:
+ assert validate_compute_rate_cards(COMPUTE_RATE_CARDS) == COMPUTE_RATE_CARDS