Skip to content

fix: migration unique check#3756

Merged
rebelchris merged 1 commit intomainfrom
chore-optimize-script
Mar 30, 2026
Merged

fix: migration unique check#3756
rebelchris merged 1 commit intomainfrom
chore-optimize-script

Conversation

@rebelchris
Copy link
Copy Markdown
Contributor

No description provided.

@pulumi
Copy link
Copy Markdown

pulumi Bot commented Mar 30, 2026

🍹 The Update (preview) for dailydotdev/api/prod (at bfe9645) was successful.

✨ Neo Explanation

This is a standard application deployment rolling out a new build across all 7 services and 38 scheduled jobs, accompanied by the routine creation of new DB and ClickHouse migration jobs (and cleanup of the previous build's migration jobs).

Root Cause Analysis

A new version of the application has been built and is being deployed to production. Every workload is being updated from the previous build to the new one, with database and ClickHouse migration jobs being replaced to match the new version.

Dependency Chain

The new application image is the single source of change that cascades across the entire stack:

  • 7 Deployments (API, background workers, WebSocket, private, temporal, personalized digest, worker-job) are all rolling out the new container image.
  • 38 CronJobs are updated to reference the new image and version label, so future scheduled runs will use the new code.
  • 2 one-time migration Jobs (DB and ClickHouse) are being replaced: the old versions tied to the previous build are deleted, and new ones tied to the new build are created to run any schema or data migrations required by this release.

Risk Analysis

No stateful resources (databases, storage, persistent volumes) are being deleted or replaced. The migration jobs run against live databases, but this is the standard deployment pattern — old migration jobs are cleaned up and new ones execute migrations for the current release. Deployments use Kubernetes rolling updates, so no downtime is expected.

Resource Changes

    Name                                                       Type                           Operation
~   vpc-native-clean-expired-better-auth-sessions-cron         kubernetes:batch/v1:CronJob    update
~   vpc-native-sync-subscription-with-cio-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-channel-highlights-cron                         kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-history-clickhouse-cron  kubernetes:batch/v1:CronJob    update
-   vpc-native-api-clickhouse-migration-b2aa407d               kubernetes:batch/v1:Job        delete
~   vpc-native-daily-digest-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-ws-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-update-source-public-threshold-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-deployment                  kubernetes:apps/v1:Deployment  update
~   vpc-native-temporal-deployment                             kubernetes:apps/v1:Deployment  update
~   vpc-native-bg-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-private-deployment                              kubernetes:apps/v1:Deployment  update
~   vpc-native-generic-referral-reminder-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-calculate-top-readers-cron                      kubernetes:batch/v1:CronJob    update
+   vpc-native-api-clickhouse-migration-3bb62dff               kubernetes:batch/v1:Job        create
~   vpc-native-rotate-weekly-quests-cron                       kubernetes:batch/v1:CronJob    update
~   vpc-native-squad-posts-analytics-refresh-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-worker-job-deployment                           kubernetes:apps/v1:Deployment  update
~   vpc-native-channel-digests-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-rotate-daily-quests-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-update-current-streak-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-update-trending-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-update-tag-recommendations-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-update-highlighted-views-cron                   kubernetes:batch/v1:CronJob    update
-   vpc-native-api-db-migration-b2aa407d                       kubernetes:batch/v1:Job        delete
~   vpc-native-user-profile-updated-sync-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-update-achievement-rarity-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-channel-highlights-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-history-day-clickhouse-cron      kubernetes:batch/v1:CronJob    update
~   vpc-native-update-views-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-stale-user-transactions-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-generate-search-invites-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-clickhouse-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-opportunities-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-users-cron                         kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-clickhouse-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-gifted-plus-cron                          kubernetes:batch/v1:CronJob    update
~   vpc-native-hourly-notification-cron                        kubernetes:batch/v1:CronJob    update
+   vpc-native-api-db-migration-3bb62dff                       kubernetes:batch/v1:Job        create
~   vpc-native-update-tags-str-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-validate-active-users-cron                      kubernetes:batch/v1:CronJob    update
... and 10 other changes

@rebelchris rebelchris merged commit 548e7f0 into main Mar 30, 2026
8 of 9 checks passed
@rebelchris rebelchris deleted the chore-optimize-script branch March 30, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant