Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

feat(api/worker): register dispute closure, pass and visit tasks

Hampus64f6e696079f
diff --git a/fluxer_api/src/api/worker/WorkerLaneConfig.ts b/fluxer_api/src/api/worker/WorkerLaneConfig.ts
index 10aa2456a..be5ec3bf8 100644
--- a/fluxer_api/src/api/worker/WorkerLaneConfig.ts
+++ b/fluxer_api/src/api/worker/WorkerLaneConfig.ts
@@ -35,7 +35,9 @@ const LANE_CONFIG = {
consumerName: 'workers_lifecycle',
tasks: [
'processStripeWebhook',
+ 'closePaymentDisputeAccounts',
'sendSystemDm',
+ 'notifyRegistrationApprovers',
'userProcessPendingDeletion',
'userProcessPendingDeletions',
'applicationProcessDeletion',
@@ -56,10 +58,14 @@ const LANE_CONFIG = {
'bulkScheduleUserDeletion',
'bulkUpdateGuildFeatures',
'bulkAddGuildMembers',
+ 'joinSingleCommunityMembers',
'bulkBanFileShas',
'bulkDeleteMessagesForUsers',
'drainActivitySpool',
'liftExpiredGuildInvitePauses',
+ 'endGuildVisitsForCode',
+ 'pruneGuildVisits',
+ 'endUnassignedGuildVisits',
] as const,
retiredTasks: ['sendScheduledMessage', 'finalizeNcmecAttachmentReport'],
concurrency: 8,
@@ -95,10 +101,17 @@ const LANE_CONFIG = {
'removeThreadMembershipsForGuildMember',
'syncThreadSearchDocument',
'backfillThreadSearch',
+ 'backfillPasskeyTrait',
+ 'backfillUserAclIndex',
'syncDiscoveryIndex',
'syncUrlBlocklists',
'syncFileShaBlocklists',
'flushUserActivityBuffer',
+ 'operatorPassSaleBroadcast',
+ 'operatorPassWaitlistCleanup',
+ 'operatorPassRemovalExpiry',
+ 'operatorPassOfferCompletion',
+ 'operatorPassWallRetention',
] as const,
retiredTasks: [],
concurrency: 12,
diff --git a/fluxer_api/src/api/worker/WorkerTaskRegistry.ts b/fluxer_api/src/api/worker/WorkerTaskRegistry.ts
index 3525e6d73..4b7ba5a85 100644
--- a/fluxer_api/src/api/worker/WorkerTaskRegistry.ts
+++ b/fluxer_api/src/api/worker/WorkerTaskRegistry.ts
@@ -7,10 +7,13 @@ import bulkDeleteMessagesForUsers from '@app/api/worker/tasks/admin_bulk/BulkDel
import bulkScheduleUserDeletion from '@app/api/worker/tasks/admin_bulk/BulkScheduleUserDeletion';
import bulkUpdateGuildFeatures from '@app/api/worker/tasks/admin_bulk/BulkUpdateGuildFeatures';
import bulkUpdateUserFlags from '@app/api/worker/tasks/admin_bulk/BulkUpdateUserFlags';
+import backfillPasskeyTrait from '@app/api/worker/tasks/BackfillPasskeyTrait';
+import backfillUserAclIndex from '@app/api/worker/tasks/BackfillUserAclIndex';
import batchGuildAuditLogMessageDeletes from '@app/api/worker/tasks/BatchGuildAuditLogMessageDeletes';
import bulkDeleteSelfMessagesImmediate from '@app/api/worker/tasks/BulkDeleteSelfMessagesImmediate';
import bulkDeleteUserMessages from '@app/api/worker/tasks/BulkDeleteUserMessages';
import clearAuthenticatedReporterEmails from '@app/api/worker/tasks/ClearAuthenticatedReporterEmails';
+import closePaymentDisputeAccounts from '@app/api/worker/tasks/ClosePaymentDisputeAccounts';
import crosspostMessage from '@app/api/worker/tasks/CrosspostMessage';
import crosspostMessageChunk from '@app/api/worker/tasks/CrosspostMessageChunk';
import deleteUserMessagesInGuildByTime from '@app/api/worker/tasks/DeleteUserMessagesInGuildByTime';
@@ -21,14 +24,26 @@ import expireStaleJobs from '@app/api/worker/tasks/ExpireStaleJobs';
import extractEmbeds from '@app/api/worker/tasks/ExtractEmbeds';
import flushUserActivityBuffer from '@app/api/worker/tasks/FlushUserActivityBuffer';
import guildProcessDeletion from '@app/api/worker/tasks/GuildProcessDeletion';
+import {
+ endGuildVisitsForCodeTask,
+ endUnassignedGuildVisitsTask,
+ pruneGuildVisitsTask,
+} from '@app/api/worker/tasks/GuildVisitTasks';
import handleMentionChunk from '@app/api/worker/tasks/HandleMentionChunk';
import handleMentions from '@app/api/worker/tasks/HandleMentions';
import harvestGuildData from '@app/api/worker/tasks/HarvestGuildData';
import harvestUserData from '@app/api/worker/tasks/HarvestUserData';
import indexChannelMessages from '@app/api/worker/tasks/IndexChannelMessages';
import indexGuildMembers from '@app/api/worker/tasks/IndexGuildMembers';
+import joinSingleCommunityMembers from '@app/api/worker/tasks/JoinSingleCommunityMembers';
import liftExpiredGuildInvitePauses from '@app/api/worker/tasks/LiftExpiredGuildInvitePauses';
import messageShred from '@app/api/worker/tasks/MessageShred';
+import notifyRegistrationApprovers from '@app/api/worker/tasks/NotifyRegistrationApprovers';
+import operatorPassOfferCompletion from '@app/api/worker/tasks/OperatorPassOfferCompletion';
+import operatorPassRemovalExpiry from '@app/api/worker/tasks/OperatorPassRemovalExpiry';
+import operatorPassSaleBroadcast from '@app/api/worker/tasks/OperatorPassSaleBroadcast';
+import operatorPassWaitlistCleanup from '@app/api/worker/tasks/OperatorPassWaitlistCleanup';
+import operatorPassWallRetention from '@app/api/worker/tasks/OperatorPassWallRetention';
import pollAppStoreNotificationHistory from '@app/api/worker/tasks/PollAppStoreNotificationHistory';
import pollGooglePlayVoidedPurchases from '@app/api/worker/tasks/PollGooglePlayVoidedPurchases';
import processAppStoreNotification from '@app/api/worker/tasks/ProcessAppStoreNotification';
@@ -75,6 +90,8 @@ export const workerTasks: Record<WorkerTaskName, WorkerTaskHandler> = {
repairThreadIndexes,
syncThreadSearchDocument,
backfillThreadSearch,
+ backfillPasskeyTrait,
+ backfillUserAclIndex,
batchGuildAuditLogMessageDeletes,
bulkAddGuildMembers: bulkAddGuildMembers,
bulkBanFileShas: bulkBanFileShas,
@@ -85,10 +102,13 @@ export const workerTasks: Record<WorkerTaskName, WorkerTaskHandler> = {
bulkUpdateGuildFeatures: bulkUpdateGuildFeatures,
bulkUpdateUserFlags: bulkUpdateUserFlags,
clearAuthenticatedReporterEmails,
+ closePaymentDisputeAccounts,
crosspostMessage,
crosspostMessageChunk,
deleteUserMessagesInGuildByTime,
drainActivitySpool,
+ endGuildVisitsForCode: endGuildVisitsForCodeTask,
+ endUnassignedGuildVisits: endUnassignedGuildVisitsTask,
expireAttachments,
expireReportSnapshots,
expireStaleJobs,
@@ -100,8 +120,15 @@ export const workerTasks: Record<WorkerTaskName, WorkerTaskHandler> = {
harvestUserData,
indexChannelMessages,
indexGuildMembers,
+ joinSingleCommunityMembers,
liftExpiredGuildInvitePauses,
messageShred,
+ notifyRegistrationApprovers,
+ operatorPassOfferCompletion,
+ operatorPassRemovalExpiry,
+ operatorPassWallRetention,
+ operatorPassSaleBroadcast,
+ operatorPassWaitlistCleanup,
processAssetDeletionQueue,
processCachePurgeQueue,
processStripeWebhook,
@@ -118,6 +145,7 @@ export const workerTasks: Record<WorkerTaskName, WorkerTaskHandler> = {
pollGooglePlayVoidedPurchases,
pollAppStoreNotificationHistory,
prunePostgresKvTtl,
+ pruneGuildVisits: pruneGuildVisitsTask,
refreshSearchIndex,
seedThreadPermissions,
removeChannelFollowers,