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

Commit fea8632

Browse files
committed
format.
1 parent fd513d8 commit fea8632

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/pages/jobs.mdx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ Within a Batch we define Job Definitions, which describes the code we will execu
5252
```typescript
5353
import { jobDefinition, JobContext } from '@nitric/sdk'
5454

55-
const myJob = jobDefinition('analyse').define((ctx: JobContext) => {
56-
// Do some work
57-
}, {cpus: 1, memory: 1024, gpus: 0})
55+
const myJob = jobDefinition('analyse').define(
56+
(ctx: JobContext) => {
57+
// Do some work
58+
},
59+
{ cpus: 1, memory: 1024, gpus: 0 }
60+
)
5861
```
5962

6063
```python
@@ -88,7 +91,7 @@ api.post('/submit-job', async (ctx) => {
8891
await analyseJob.submit(
8992
{
9093
someKey: 'someValue',
91-
},
94+
},
9295
// optional job resource overrides
9396
{ cpus: 1, memory: 1024, gpus: 0 }
9497
)

0 commit comments

Comments
 (0)