Replies: 1 comment
-
|
So i ran into the same issue and figured I could delete the tasks in the payload-jobs collection using the Local API: const result = await req.payload.delete({
collection: "payload-jobs",
where: {
queue: { equals: queue },
},
})You can use other fields as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When a job successfully runs, it's cleared from the
payload_jobstable in the database. When cancelling a job, it remains in thepayload_jobstable with aerrorvalue of{"cancelled": true}When are these cancelled jobs cleared from the queue table? I can't find much information about it in the documentation at the moment: https://payloadcms.com/docs/jobs-queue/jobs#cancelling-jobs
Beta Was this translation helpful? Give feedback.
All reactions