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.

chore(cdp): remove the dead cyclotron v1 database url config (#84833)

Daniel Marchuk135c1f0df023
diff --git a/bin/start b/bin/start
index 4f4dd8b43758..40145d5a6d9b 100755
--- a/bin/start
+++ b/bin/start
@@ -136,7 +136,6 @@ export PERSONS_DB_WRITER_URL=${PERSONS_DB_WRITER_URL:-$PERSONS_DATABASE_URL}
export PERSONS_DB_READER_URL=${PERSONS_DB_READER_URL:-$PERSONS_READONLY_DATABASE_URL}
export BEHAVIORAL_COHORTS_DATABASE_URL=${BEHAVIORAL_COHORTS_DATABASE_URL:-postgres://posthog:posthog@${PGHOST:-db}:${PGPORT:-5432}/behavioral_cohorts}
export FLAGS_READ_STORE_DATABASE_URL=${FLAGS_READ_STORE_DATABASE_URL:-postgres://posthog:posthog@${PGHOST:-db}:${PGPORT:-5432}/flags_read_store}
-export CYCLOTRON_DATABASE_URL=${CYCLOTRON_DATABASE_URL:-postgres://posthog:posthog@${PGHOST:-db}:${PGPORT:-5432}/cyclotron}
export CYCLOTRON_NODE_DATABASE_URL=${CYCLOTRON_NODE_DATABASE_URL:-postgres://posthog:posthog@${PGHOST:-db}:${PGPORT:-5432}/cyclotron_node}
# Clean up orphaned dev processes left behind by a previous unclean shutdown.
diff --git a/docker-compose.hobby.yml b/docker-compose.hobby.yml
index 0fc8a108a3bf..cbc9b48f69fa 100644
--- a/docker-compose.hobby.yml
+++ b/docker-compose.hobby.yml
@@ -217,7 +217,6 @@ services:
CDP_VALKEY_HOST: valkey
CDP_VALKEY_PORT: 6379
ENCRYPTION_SALT_KEYS: $ENCRYPTION_SALT_KEYS
- CYCLOTRON_DATABASE_URL: 'postgres://posthog:posthog@db:5432/posthog'
PERSONS_DATABASE_URL: 'postgres://posthog:posthog@db:5432/posthog'
BEHAVIORAL_COHORTS_DATABASE_URL: 'postgres://posthog:posthog@db:5432/posthog'
OTEL_EXPORTER_OTLP_ENDPOINT: ''
diff --git a/nodejs/jest.setup-env.ts b/nodejs/jest.setup-env.ts
index 780d74571a5d..a8e1ec52f3cc 100644
--- a/nodejs/jest.setup-env.ts
+++ b/nodejs/jest.setup-env.ts
@@ -6,7 +6,7 @@ import { brotliDecompressSync } from 'zlib'
// from an environment where NODE_ENV or DEBUG is already set (IDE test runners,
// debuggers, flox exports DEBUG=1), `determineNodeEnv()` resolves to dev and
// every config default (DATABASE_URL, PERSONS_DATABASE_URL, CLICKHOUSE_DATABASE,
-// CYCLOTRON_DATABASE_URL, ...) points at the real dev databases — which
+// CYCLOTRON_NODE_DATABASE_URL, ...) points at the real dev databases — which
// destructive test helpers would then wipe. Force the test environment so the
// defaults always resolve to their test_* counterparts. Explicitly exported
// *_DATABASE_URL variables still win; tests/helpers/database-guard.ts catches
diff --git a/nodejs/src/cdp/config.ts b/nodejs/src/cdp/config.ts
index bb1f8841856d..04fbb857290a 100644
--- a/nodejs/src/cdp/config.ts
+++ b/nodejs/src/cdp/config.ts
@@ -120,7 +120,6 @@ export type CdpConfig = ClickhouseConfig & {
CDP_EMAIL_TRACKING_URL: string
// Cyclotron (CDP job queue)
- CYCLOTRON_DATABASE_URL: string
CYCLOTRON_SHARD_DEPTH_LIMIT: number
CYCLOTRON_NODE_DATABASE_URL?: string
// SES (Workflows email sending)
@@ -287,9 +286,6 @@ export function getDefaultCdpConfig(): CdpConfig {
CDP_EMAIL_TRACKING_URL: 'http://localhost:8010',
// Cyclotron
- CYCLOTRON_DATABASE_URL: isTestEnv()
- ? 'postgres://posthog:posthog@localhost:5432/test_cyclotron'
- : 'postgres://posthog:posthog@localhost:5432/cyclotron',
CYCLOTRON_SHARD_DEPTH_LIMIT: 1000000,
CYCLOTRON_NODE_DATABASE_URL: isTestEnv()
? 'postgres://posthog:posthog@localhost:5432/test_cyclotron_node'
diff --git a/nodejs/src/cdp/rerun/rerun-e2e.test.ts b/nodejs/src/cdp/rerun/rerun-e2e.test.ts
index 3405f0104047..3db69da4f13c 100644
--- a/nodejs/src/cdp/rerun/rerun-e2e.test.ts
+++ b/nodejs/src/cdp/rerun/rerun-e2e.test.ts
@@ -149,7 +149,6 @@ describe('CDP hog invocation rerun e2e', () => {
hub.CDP_FETCH_RETRIES = 0
hub.CDP_FETCH_BACKOFF_BASE_MS = 1
hub.CDP_CYCLOTRON_COMPRESS_KAFKA_DATA = true
- hub.CYCLOTRON_DATABASE_URL = 'postgres://posthog:posthog@localhost:5432/test_cyclotron'
hub.CYCLOTRON_NODE_DATABASE_URL = NODE_DB_URL
hub.HOG_INVOCATION_RESULTS_ENABLED = true
diff --git a/nodejs/tests/service-e2e/rust-ingestion-consumer.test.ts b/nodejs/tests/service-e2e/rust-ingestion-consumer.test.ts
index a4867217016d..d9fc8a280e04 100644
--- a/nodejs/tests/service-e2e/rust-ingestion-consumer.test.ts
+++ b/nodejs/tests/service-e2e/rust-ingestion-consumer.test.ts
@@ -557,7 +557,6 @@ function testDependencyEnv(): NodeJS.ProcessEnv {
PERSONS_DATABASE_URL: `${POSTGRES_URL}/test_persons`,
PERSONS_READONLY_DATABASE_URL: `${POSTGRES_URL}/test_persons`,
BEHAVIORAL_COHORTS_DATABASE_URL: `${POSTGRES_URL}/test_behavioral_cohorts`,
- CYCLOTRON_DATABASE_URL: `${POSTGRES_URL}/test_cyclotron`,
CYCLOTRON_NODE_DATABASE_URL: `${POSTGRES_URL}/test_cyclotron_node`,
KAFKA_HOSTS: 'localhost:9092',
KAFKA_PRODUCER_METADATA_BROKER_LIST: 'localhost:9092',
diff --git a/products/tasks/backend/sandbox/images/bake-posthog-dev-stack.sh b/products/tasks/backend/sandbox/images/bake-posthog-dev-stack.sh
index b6047390df19..02d2c38a7a5c 100644
--- a/products/tasks/backend/sandbox/images/bake-posthog-dev-stack.sh
+++ b/products/tasks/backend/sandbox/images/bake-posthog-dev-stack.sh
@@ -250,7 +250,6 @@ bin/migrate --scope=clickhouse
log "running rust-driven migrations"
# Same connection URLs bin/start derives for these scopes; the rust/bin migrators
# otherwise default to localhost with per-store host/user envs.
-export CYCLOTRON_DATABASE_URL="${CYCLOTRON_DATABASE_URL:-postgres://posthog:posthog@db:5432/cyclotron}"
export CYCLOTRON_NODE_DATABASE_URL="${CYCLOTRON_NODE_DATABASE_URL:-postgres://posthog:posthog@db:5432/cyclotron_node}"
export BEHAVIORAL_COHORTS_DATABASE_URL="${BEHAVIORAL_COHORTS_DATABASE_URL:-postgres://posthog:posthog@db:5432/behavioral_cohorts}"
export FLAGS_READ_STORE_DATABASE_URL="${FLAGS_READ_STORE_DATABASE_URL:-postgres://posthog:posthog@db:5432/flags_read_store}"