Function
createRemindMeJob
(
jobKey: string,
runAt: Date,
payload: any
)
Source from the content-addressed store, hash-verified
| 43 | } |
| 44 | |
| 45 | export async function createRemindMeJob( |
| 46 | jobKey: string, |
| 47 | runAt: Date, |
| 48 | payload: any |
| 49 | ) { |
| 50 | const worker = await WorkerSingleton.getInstance(); |
| 51 | return await worker.addJob('remind-me-later-queue', payload, { |
| 52 | jobKey: `remind-me-later-queue:${jobKey}`, |
| 53 | maxAttempts: 1, |
| 54 | runAt, |
| 55 | jobKeyMode: 'replace', |
| 56 | }); |
| 57 | } |
| 58 | |
| 59 | export async function createMarkAllAsReadJob( |
| 60 | jobKey: string, |
Tested by
no test coverage detected