wasp/waspc/examples/todoApp/ext/jobs/bar.js
Shayne Czyzewski f14be11fc3
Add pg-boss as a Job executor (#582)
Note: This does not provide cron support, that is coming in the next PR.
2022-05-03 14:34:25 -04:00

8 lines
182 B
JavaScript

import { sleep } from '@wasp/utils.js'
export const foo = async (args) => {
console.log("Inside Job bar's callback foo: ", args)
await sleep(4000)
return { hello: "world" }
}