feat: add announcement channels, publishing and following (#3090)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-01 16:57:21 +02:00
1 parent 376afd2ad6
commit 7e4d5137f8
381 files changed
+45650 -14076

No files matched your search

@@ -96,6 +96,21 @@ const LANE_CONFIG = {
ackWaitMs: 120000,
maxDeliver: 25,
},
crosspost: {
consumerName: 'workers_crosspost',
tasks: [
'crosspostMessage',
'crosspostMessageChunk',
'syncCrosspostedMessage',
'syncCrosspostCopies',
'removeChannelFollowers',
] as const,
retiredTasks: [],
concurrency: 8,
maxAckPending: 64,
ackWaitMs: 60000,
maxDeliver: 25,
},
} satisfies Record<APIWorkerLaneName, LaneSettings>;
export type WorkerTaskName = (typeof LANE_CONFIG)[keyof typeof LANE_CONFIG]['tasks'][number];
@@ -137,6 +152,7 @@ const WORKER_LANES: ReadonlyArray<WorkerLaneDefinition> = [
makeLane('unfurl'),
makeLane('lifecycle'),
makeLane('batch'),
makeLane('crosspost'),
];
const WORKER_LANE_MAP = buildWorkerLaneMap();
const WORKER_LANE_NAMES = Object.freeze(WORKER_LANES.map((lane) => lane.name));