Openstatus www.openstatus.dev

remove local replication (#1639)

* remove local replication

* ci: apply automated fixes

* improve example env

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Thibault Le Ouay
autofix-ci[bot]
and committed by
GitHub
b4fbb971 80b10629

+9 -8
+4 -4
.env.docker.example
··· 69 69 # GOOGLE CLOUD 70 70 # ============================================================================ 71 71 # Google Cloud Platform (optional - for scheduled tasks) 72 - GCP_PROJECT_ID= 73 - GCP_LOCATION= 74 - GCP_CLIENT_EMAIL= 75 - GCP_PRIVATE_KEY= 72 + GCP_PROJECT_ID=your-value 73 + GCP_LOCATION=your-value 74 + GCP_CLIENT_EMAIL=your-value 75 + GCP_PRIVATE_KEY=your-value 76 76 77 77 # Cron secret for scheduled jobs 78 78 CRON_SECRET=your-random-cron-secret
+2
.gitignore
··· 67 67 apps/ingest-worker/.production.vars 68 68 apps/ingest-worker/.dev.vars 69 69 apps/alerting-engine/tmp/ 70 + 71 + .env.docker
+2 -2
apps/workflows/src/cron/checker.ts
··· 2 2 import type { google } from "@google-cloud/tasks/build/protos/protos"; 3 3 import { z } from "zod"; 4 4 5 - import { and, eq, gte, lte, notInArray } from "@openstatus/db"; 5 + import { and, db, eq, gte, lte, notInArray } from "@openstatus/db"; 6 6 import { 7 7 type MonitorStatus, 8 8 maintenance, ··· 14 14 } from "@openstatus/db/src/schema"; 15 15 import type { Region } from "@openstatus/db/src/schema/constants"; 16 16 import { regionDict } from "@openstatus/regions"; 17 - import { db } from "../lib/db"; 17 + // import { db } from "../lib/db"; 18 18 19 19 import { getSentry } from "@hono/sentry"; 20 20 import { getLogger } from "@logtape/logtape";
+1 -2
apps/workflows/src/cron/monitor.ts
··· 2 2 import type { google } from "@google-cloud/tasks/build/protos/protos"; 3 3 import { 4 4 and, 5 - // db, 5 + db, 6 6 desc, 7 7 eq, 8 8 isNull, ··· 21 21 import { RateLimiter } from "limiter"; 22 22 import { z } from "zod"; 23 23 import { env } from "../env"; 24 - import { db } from "../lib/db"; 25 24 26 25 const redis = Redis.fromEnv(); 27 26