Skip to content

feat: quest user to reward cores#3718

Open
AmarTrebinjac wants to merge 2 commits intomainfrom
ENG-1086
Open

feat: quest user to reward cores#3718
AmarTrebinjac wants to merge 2 commits intomainfrom
ENG-1086

Conversation

@AmarTrebinjac
Copy link
Contributor

@AmarTrebinjac AmarTrebinjac commented Mar 17, 2026

@pulumi
Copy link

pulumi bot commented Mar 17, 2026

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

✨ Neo Explanation

This is a standard application version rollout: all Kubernetes workloads (deployments, cron jobs) are being updated to the new container image, and fresh database/ClickHouse migration jobs are being created to apply any schema changes from the new release.

Root Cause Analysis

A new version of the application has been built and is being rolled out to production. Every workload in the cluster is being updated to run the new container image, replacing the previous build with the latest one.

Dependency Chain

The new application version cascades uniformly across all workloads:

  • 7 Deployments (main API, background workers, websocket, private, temporal, worker-job, personalized digest) are being updated in-place to pull the new container image — Kubernetes will perform a rolling update for each.
  • 36 CronJobs are having their job templates updated so that the next scheduled run will use the new image.
  • 2 one-time migration Jobs (database and ClickHouse) tied to the previous build are being deleted, and 2 new migration jobs for the new build are being created — these run the TypeORM and ClickHouse schema migrations as part of the deployment process.

Risk Analysis

No stateful resources (databases, storage, persistent volumes) are being replaced or deleted. The migration jobs are short-lived and replace their versioned predecessors cleanly. Rolling updates on the Deployments maintain availability throughout.

Resource Changes

    Name                                                       Type                           Operation
~   vpc-native-squad-posts-analytics-refresh-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-expired-better-auth-sessions-cron         kubernetes:batch/v1:CronJob    update
~   vpc-native-update-views-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-generic-referral-reminder-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-temporal-deployment                             kubernetes:apps/v1:Deployment  update
~   vpc-native-user-posts-analytics-refresh-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-history-clickhouse-cron  kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-deployment                  kubernetes:apps/v1:Deployment  update
+   vpc-native-api-db-migration-776bc5ac                       kubernetes:batch/v1:Job        create
~   vpc-native-sync-subscription-with-cio-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-update-source-public-threshold-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-rotate-weekly-quests-cron                       kubernetes:batch/v1:CronJob    update
~   vpc-native-update-source-tag-view-cron                     kubernetes:batch/v1:CronJob    update
-   vpc-native-api-clickhouse-migration-c99273ff               kubernetes:batch/v1:Job        delete
~   vpc-native-personalized-digest-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-private-deployment                              kubernetes:apps/v1:Deployment  update
~   vpc-native-generate-search-invites-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-update-highlighted-views-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-ws-deployment                                   kubernetes:apps/v1:Deployment  update
+   vpc-native-api-clickhouse-migration-776bc5ac               kubernetes:batch/v1:Job        create
~   vpc-native-expire-super-agent-trial-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-update-tag-recommendations-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-images-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-clickhouse-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-agents-digest-cron                              kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-stale-user-transactions-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-deployment                                      kubernetes:apps/v1:Deployment  update
-   vpc-native-api-db-migration-c99273ff                       kubernetes:batch/v1:Job        delete
~   vpc-native-validate-active-users-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-calculate-top-readers-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-update-trending-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-daily-digest-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-bg-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-hourly-notification-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-update-tags-str-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-user-companies-cron                kubernetes:batch/v1:CronJob    update
~   vpc-native-check-analytics-report-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-update-current-streak-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-clickhouse-cron                  kubernetes:batch/v1:CronJob    update
... and 8 other changes

@AmarTrebinjac AmarTrebinjac marked this pull request as ready for review March 17, 2026 16:14
name: 'Quest',
};

export const systemEntityIds = [systemUser.id, questUser.id];
Copy link
Contributor

@capJavert capJavert Mar 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AmarTrebinjac only this should be enough, and then on any transaction you make you just put it questUser.id, thats it

Njord will auto create new user on its side with first transaction, no need to do changes in njord you did.

Copy link
Contributor

@capJavert capJavert Mar 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

be aware we have user named quest https://app.daily.dev/quest, so you need to rename their username to quest1 or something and add it to disallow handle.

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