MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / createWebhookJob

Function createWebhookJob

apps/web/queue/jobs.ts:30–36  ·  view source on GitHub ↗
(payload: SlackEvent)

Source from the content-addressed store, hash-verified

28}
29
30export async function createWebhookJob(payload: SlackEvent) {
31 const worker = await WorkerSingleton.getInstance();
32 return await worker.addJob('webhook', payload, {
33 jobKey: `webhook:${payload.event_id}`,
34 maxAttempts: 1,
35 });
36}
37
38export async function createSyncJob(payload: SyncJobType) {
39 const worker = await WorkerSingleton.getInstance();

Callers 1

handlerFunction · 0.90

Calls 1

getInstanceMethod · 0.80

Tested by

no test coverage detected