How do you clear scheduled jobs?
I'd like to cancel a PgBoss job because I changed the logic, is there a way to clear it from the database?
fetch function to get the job by jobName (internally, we use the job name you defined in the Wasp file) and then you can cancel a job:cancel()SubmittedJobpgBoss.cancel() const submittedJob = await submitJob(...)
await submittedJob.pgBoss.cancel()import { pgBossStarted } from 'wasp/server/jobs/core/pgBoss/pgBoss'
pgBossStarted.then((pgBoss) => {
pgBoss.cancel('job-id')
})