Skip to content

Commit f4567bc

Browse files
committed
explain error handling of jobs
1 parent c23f599 commit f4567bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ving/docs/subsystems/jobs.md

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ To create a new job run:
6565
./ving.mjs jobs -n MyNewHandler
6666
```
6767

68+
## Error Handling
69+
70+
If a job throws an `Error` it will be retried up to 3 times at 1, 2, and 4 minute intervals. If after 3 attempts it still fails, it will be aborted, logged, an an email will be sent to all admins.
71+
6872
## Cron Jobs
6973
You can set up jobs with a `cron` style schedule via the javascript API or the [CLI](cli). However, 2 jobs cannot have the same schedule, and you cannot set them up via the REST API. To get around this you can use the `CronJob` VingRecord which is accessible via the [REST API](../rest/CronJob) or using the built-in Admin UI.
7074

0 commit comments

Comments
 (0)