From 59ed1896ff7dbd95fb9af9f96df409fb1843de12 Mon Sep 17 00:00:00 2001 From: dholms Date: Wed, 25 Oct 2023 17:29:36 -0500 Subject: [PATCH 1/2] lengthen view maintainer interval --- .github/workflows/build-and-push-bsky-aws.yaml | 1 + services/bsky/api.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push-bsky-aws.yaml b/.github/workflows/build-and-push-bsky-aws.yaml index 36b1aa23cb3..2080be05302 100644 --- a/.github/workflows/build-and-push-bsky-aws.yaml +++ b/.github/workflows/build-and-push-bsky-aws.yaml @@ -3,6 +3,7 @@ on: push: branches: - main + - periodic-view-maintainence env: REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }} USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }} diff --git a/services/bsky/api.js b/services/bsky/api.js index 5363f7661f0..4ae71b17760 100644 --- a/services/bsky/api.js +++ b/services/bsky/api.js @@ -103,7 +103,7 @@ const main = async () => { schema: env.dbPostgresSchema, poolSize: 2, }) - const viewMaintainer = new ViewMaintainer(migrateDb) + const viewMaintainer = new ViewMaintainer(migrateDb, 1800) const viewMaintainerRunning = viewMaintainer.run() const periodicModerationActionReversal = new PeriodicModerationActionReversal( From ef1d64a9081dbdfc64317c0e3c0174c7b15fe8f0 Mon Sep 17 00:00:00 2001 From: dholms Date: Thu, 26 Oct 2023 18:37:19 -0500 Subject: [PATCH 2/2] dont build branch --- .github/workflows/build-and-push-bsky-aws.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-and-push-bsky-aws.yaml b/.github/workflows/build-and-push-bsky-aws.yaml index 2080be05302..36b1aa23cb3 100644 --- a/.github/workflows/build-and-push-bsky-aws.yaml +++ b/.github/workflows/build-and-push-bsky-aws.yaml @@ -3,7 +3,6 @@ on: push: branches: - main - - periodic-view-maintainence env: REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }} USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }}