mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-30 20:45:47 +03:00
f14be11fc3
Note: This does not provide cron support, that is coming in the next PR.
17 lines
296 B
JavaScript
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"
|
|
}
|
|
}
|
|
|