Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit b47aab7

Browse files
committed
update nodejs example
1 parent 4baaa53 commit b47aab7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/batch.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ import { job, JobContext } from '@nitric/sdk'
5959
const myJob = job('analyse')
6060

6161
// Use `handler` to register the callback function that will run when a job is submitted
62-
myJob.handler({ cpus: 1, memory: 1024, gpus: 0 }, async (ctx: JobContext) => {
62+
myJob.handler(async (ctx: JobContext) => {
6363
// Do some work
64-
})
64+
}, { cpus: 1, memory: 1024, gpus: 0 })
6565
```
6666
6767
```python

0 commit comments

Comments
 (0)