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

Commit 929bf29

Browse files
committed
format.
1 parent 0cc460f commit 929bf29

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/pages/jobs.mdx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ A Job is an instance of a Job Definition that is running within a `Batch`, these
2323
Jobs are designed to be long running HPC workloads and can take some time to spin up. They are not designed with reactivity in mind and are not suitable for responding to events from cloud resources.
2424

2525
Jobs are unable to run the following:
26+
2627
- Topic Subscriptions
2728
- Bucket Notifications
2829
- API & HTTP resources
@@ -38,8 +39,8 @@ Jobs can be use to read and write to/from all nitric resources.
3839
import { jobDefinition, JobContext } from '@nitric/sdk'
3940

4041
const myJob = jobDefinition('analyse').define((ctx: JobContext) => {
41-
// Do some work
42-
});
42+
// Do some work
43+
})
4344
```
4445

4546
```python
@@ -67,14 +68,14 @@ Jobs may be submitted from Nitric `services`.
6768
```javascript
6869
import * as nitric from '@nitric/sdk'
6970

70-
const api = nitric.api('public');
71-
const analyseJob = nitric.jobDefintion('analyse');
71+
const api = nitric.api('public')
72+
const analyseJob = nitric.jobDefintion('analyse')
7273

7374
api.post('/submit-job', async (ctx) => {
74-
await analyseJob.submit({
75-
someKey: 'someValue'
76-
});
77-
});
75+
await analyseJob.submit({
76+
someKey: 'someValue',
77+
})
78+
})
7879
```
7980

8081
```python
@@ -91,4 +92,4 @@ async def submit_job(ctx):
9192
})
9293

9394
Nitric.run()
94-
```
95+
```

0 commit comments

Comments
 (0)