: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(temporal): prefix tuner target settings with `TEMPORAL_` (#105273)
Ross6c978202e49b
diff --git a/posthog/management/commands/start_temporal_worker.py b/posthog/management/commands/start_temporal_worker.pyindex 9ff3b016074c..45cd0945de9c 100644--- a/posthog/management/commands/start_temporal_worker.py+++ b/posthog/management/commands/start_temporal_worker.py@@ -684,13 +684,13 @@ class Command(BaseCommand):parser.add_argument("--target-memory-usage",type=float,- default=settings.TARGET_MEMORY_USAGE,+ default=settings.TEMPORAL_TARGET_MEMORY_USAGE,help="Fraction of available memory to use",)parser.add_argument("--target-cpu-usage",type=float,- default=settings.TARGET_CPU_USAGE,+ default=settings.TEMPORAL_TARGET_CPU_USAGE,help="Fraction of available CPU to use",)parser.add_argument(diff --git a/posthog/settings/temporal.py b/posthog/settings/temporal.pyindex 54a06bd67900..f2d780228c7a 100644--- a/posthog/settings/temporal.py+++ b/posthog/settings/temporal.py@@ -29,8 +29,12 @@ MAX_CONCURRENT_ACTIVITIES: int | None = get_from_env("MAX_CONCURRENT_ACTIVITIES"# pool is a pgbouncer client-connection multiplier: worker replicas x pool size must stay under the# pooler's max_client_conn at its minimum replica count. Raise only with that arithmetic redone.ASYNCIFY_MAX_WORKERS: int = get_from_env("ASYNCIFY_MAX_WORKERS", 32, type_cast=int)-TARGET_MEMORY_USAGE: float | None = get_from_env("TARGET_MEMORY_USAGE", None, optional=True, type_cast=float)-TARGET_CPU_USAGE: float | None = get_from_env("TARGET_CPU_USAGE", None, optional=True, type_cast=float)+TEMPORAL_TARGET_MEMORY_USAGE: float | None = get_from_env(+ "TEMPORAL_TARGET_MEMORY_USAGE", None, optional=True, type_cast=float+)+TEMPORAL_TARGET_CPU_USAGE: float | None = get_from_env(+ "TEMPORAL_TARGET_CPU_USAGE", None, optional=True, type_cast=float+)TEMPORAL_HEALTH_PORT: int | None = get_from_env("TEMPORAL_HEALTH_PORT", None, optional=True, type_cast=int)TEMPORAL_HEALTH_MAX_IDLE_SECONDS: float | None = get_from_env(