wasp/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/main.wasp
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

17 lines
296 B
JavaScript

app waspJob {
db: { system: PostgreSQL },
title: "waspJob"
}
route RootRoute { path: "/", to: MainPage }
page MainPage {
component: import Main from "@ext/MainPage.js"
}
job MySpecialJob {
executor: PgBoss,
perform: {
fn: import { foo } from "@ext/jobs/bar.js"
}
}