Skip to content

fix: migration unique check#3754

Merged
rebelchris merged 2 commits intomainfrom
fix-migration-unique
Mar 30, 2026
Merged

fix: migration unique check#3754
rebelchris merged 2 commits intomainfrom
fix-migration-unique

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 bd11cca) was successful.

✨ Neo Explanation

This is a routine application version rollout: all 7 API service deployments and 38 cron jobs are being updated to a new container image, and fresh database + ClickHouse migration jobs are being created to apply any schema changes included in the new release.

Root Cause Analysis

A new version of the API application has been built and is being deployed to production. Every Kubernetes resource is being updated to reference the new container image, replacing the previous build across all services.

Dependency Chain

The new container image version cascades uniformly to all workloads that share it:

  • 7 Deployments (main API, background workers, WebSocket, private, temporal, personalized digest, worker jobs) are rolling out the new image
  • 38 CronJobs are updated to use the new image for their next scheduled runs
  • 2 one-time migration Jobs (PostgreSQL DB migration + ClickHouse migration) from the previous release are being deleted and replaced with new ones targeting the new image — these run the database schema migrations before/alongside the new application code

Risk Analysis

The database and ClickHouse migration jobs represent the most sensitive part of this deployment. If the migrations contain destructive schema changes, there is a risk of data loss or application errors. The migration jobs from the prior release are being cleaned up, which is expected. The rolling update strategy on the Deployments means the services themselves should update without downtime.

There is also a non-critical warning about missing GCP credentials in the Pulumi provider, which did not block the preview.

Resource Changes

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

@rebelchris rebelchris enabled auto-merge (squash) March 30, 2026 10:28
@rebelchris rebelchris merged commit 38f2b64 into main Mar 30, 2026
10 checks passed
@rebelchris rebelchris deleted the fix-migration-unique branch March 30, 2026 10:37
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.

2 participants