Skip to content

chore: remove agenticDigestTweet worker#3835

Merged
idoshamun merged 1 commit intomainfrom
eng-1343-remove-the-agenticdigesttweet-worker
Apr 30, 2026
Merged

chore: remove agenticDigestTweet worker#3835
idoshamun merged 1 commit intomainfrom
eng-1343-remove-the-agenticdigesttweet-worker

Conversation

@idoshamun
Copy link
Copy Markdown
Member

Summary

  • Deleted the agenticDigestTweet worker (src/workers/agenticDigestTweet.ts) which auto-generated and posted tweets for agentic digest posts
  • Removed worker registration from src/workers/index.ts
  • Removed the api.agentic-digest-tweet Pub/Sub subscription from .infra/common.ts
  • Deleted associated tests (__tests__/workers/agenticDigestTweet.ts)

The shared Twitter client integration (src/integrations/twitter/clients.ts) is retained as it is still used by majorHighlightTweet.

Test plan

  • Build passes (pnpm run build)
  • Lint passes with 0 warnings
  • No remaining references to agenticDigestTweet or agentic-digest-tweet in codebase

Closes ENG-1343


Created by Huginn 🐦‍⬛

This worker is no longer needed. Removes the worker implementation,
its registration, infrastructure subscription, and tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pulumi
Copy link
Copy Markdown

pulumi Bot commented Apr 30, 2026

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

✨ Neo Explanation

This is a feature removal — the agentic digest tweet worker and its Pub/Sub subscription are being decommissioned — bundled with a routine new-image deployment. ✅ Low Risk (the only consideration is whether any unprocessed Pub/Sub messages need draining before the subscription is deleted).

This PR removes the agenticDigestTweet worker entirely — deleting the worker implementation, its registration in typedWorkers, and the corresponding entry in common.ts. This causes Pulumi to delete the GCP Pub/Sub subscription api.agentic-digest-tweet (which was subscribed to the api.v1.post-visible topic). The worker was responsible for generating and posting AI-written tweets about agentic digest posts via Claude + Twitter.

The remaining changes are a standard rolling deployment: all Kubernetes Deployments and CronJobs are updated to the new image tag (47e9137...), and the migration Jobs are replaced with new ones tagged to the same commit (the old commit-tagged Jobs are deleted and new ones created, which is the normal pattern for one-shot migration jobs).

🔵 Info — Any api.v1.post-visible messages currently queued in the api.agentic-digest-tweet subscription will be lost when the subscription is deleted. If there are unprocessed messages in flight at deletion time, those tweets will never be published. This is intentional if the feature is being retired, but worth confirming no pending messages need draining first.

Resource Changes

    Name                                                       Type                                  Operation
~   vpc-native-user-profile-analytics-clickhouse-cron          kubernetes:batch/v1:CronJob           update
~   vpc-native-user-profile-analytics-history-clickhouse-cron  kubernetes:batch/v1:CronJob           update
~   vpc-native-channel-digests-cron                            kubernetes:batch/v1:CronJob           update
~   vpc-native-update-highlighted-views-cron                   kubernetes:batch/v1:CronJob           update
~   vpc-native-generic-referral-reminder-cron                  kubernetes:batch/v1:CronJob           update
~   vpc-native-update-tags-str-cron                            kubernetes:batch/v1:CronJob           update
~   vpc-native-rotate-weekly-quests-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-temporal-deployment                             kubernetes:apps/v1:Deployment         update
+   vpc-native-api-clickhouse-migration-e2d93160               kubernetes:batch/v1:Job               create
~   vpc-native-materialize-yearly-best-post-archives-cron      kubernetes:batch/v1:CronJob           update
~   vpc-native-post-analytics-clickhouse-cron                  kubernetes:batch/v1:CronJob           update
~   vpc-native-expire-super-agent-trial-cron                   kubernetes:batch/v1:CronJob           update
~   vpc-native-personalized-digest-deployment                  kubernetes:apps/v1:Deployment         update
-   api-sub-api.agentic-digest-tweet                           gcp:pubsub/subscription:Subscription  delete
~   vpc-native-generate-search-invites-cron                    kubernetes:batch/v1:CronJob           update
~   vpc-native-update-achievement-rarity-cron                  kubernetes:batch/v1:CronJob           update
~   vpc-native-private-deployment                              kubernetes:apps/v1:Deployment         update
~   vpc-native-rotate-daily-quests-cron                        kubernetes:batch/v1:CronJob           update
~   vpc-native-deployment                                      kubernetes:apps/v1:Deployment         update
~   vpc-native-channel-highlights-cron                         kubernetes:batch/v1:CronJob           update
~   vpc-native-post-analytics-history-day-clickhouse-cron      kubernetes:batch/v1:CronJob           update
~   vpc-native-clean-expired-better-auth-sessions-cron         kubernetes:batch/v1:CronJob           update
~   vpc-native-update-source-public-threshold-cron             kubernetes:batch/v1:CronJob           update
~   vpc-native-clean-stale-user-transactions-cron              kubernetes:batch/v1:CronJob           update
~   vpc-native-daily-digest-cron                               kubernetes:batch/v1:CronJob           update
-   vpc-native-api-clickhouse-migration-a2b9b6a0               kubernetes:batch/v1:Job               delete
~   vpc-native-check-analytics-report-cron                     kubernetes:batch/v1:CronJob           update
~   vpc-native-user-profile-updated-sync-cron                  kubernetes:batch/v1:CronJob           update
~   vpc-native-user-posts-analytics-refresh-cron               kubernetes:batch/v1:CronJob           update
~   vpc-native-sync-subscription-with-cio-cron                 kubernetes:batch/v1:CronJob           update
~   vpc-native-ws-deployment                                   kubernetes:apps/v1:Deployment         update
~   vpc-native-update-current-streak-cron                      kubernetes:batch/v1:CronJob           update
~   vpc-native-worker-job-deployment                           kubernetes:apps/v1:Deployment         update
~   vpc-native-clean-zombie-user-companies-cron                kubernetes:batch/v1:CronJob           update
+   vpc-native-api-db-migration-e2d93160                       kubernetes:batch/v1:Job               create
~   vpc-native-calculate-top-readers-cron                      kubernetes:batch/v1:CronJob           update
~   vpc-native-clean-zombie-users-cron                         kubernetes:batch/v1:CronJob           update
~   vpc-native-update-tag-materialized-views-cron              kubernetes:batch/v1:CronJob           update
~   vpc-native-materialize-monthly-best-post-archives-cron     kubernetes:batch/v1:CronJob           update
... and 12 other changes

@idoshamun idoshamun merged commit dcdc2fc into main Apr 30, 2026
7 of 8 checks passed
@idoshamun idoshamun deleted the eng-1343-remove-the-agenticdigesttweet-worker branch April 30, 2026 07:57
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