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

Function createNotificationJob

apps/web/queue/jobs.ts:71–80  ·  view source on GitHub ↗
(
  jobKey: string,
  payload: notificationListenerType
)

Source from the content-addressed store, hash-verified

69}
70
71export async function createNotificationJob(
72 jobKey: string,
73 payload: notificationListenerType
74) {
75 const worker = await WorkerSingleton.getInstance();
76 return await worker.addJob('notificationEvent', payload, {
77 jobKey: `notificationEvent:${jobKey}`,
78 maxAttempts: 1,
79 });
80}
81
82export async function createTwoWaySyncJob(payload: TwoWaySyncType) {
83 const worker = await WorkerSingleton.getInstance();

Callers 2

eventNewThreadFunction · 0.90
eventNewMessageFunction · 0.90

Calls 1

getInstanceMethod · 0.80

Tested by

no test coverage detected