Skip to content

Commit 0042f00

Browse files
committed
Move warning outside of bullet list
1 parent 7efd9b8 commit 0042f00

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

website/docs/library/add-job.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,8 @@ The `addJob` arguments are as follows:
2828
- `payload`: an optional JSON-compatible object to give the task more context on
2929
what it is doing, or a list of these objects in “batch job” mode
3030
- `options`: an optional object specifying:
31-
3231
- `queueName`: if you want certain jobs to run one at a time, add them to the
3332
same named queue (defaults to null which enables parallelization)
34-
35-
:::warning
36-
37-
Avoid using high cardinality values (e.g., random strings, UUIDs,
38-
timestamps) for queue names as this will create many dead queues that
39-
degrade performance and require
40-
[periodic database cleanup](../admin-functions.md#gc_job_queues). If you
41-
find yourself needing to run the `GC_JOB_QUEUES` cleanup task regularly,
42-
you're likely using queue names incorrectly.
43-
44-
:::
45-
4633
- `runAt`: a `Date` to schedule this task to run in the future
4734
- `maxAttempts`: the maximum number of attempts we'll give the job
4835
(Default: 25)
@@ -55,6 +42,16 @@ The `addJob` arguments are as follows:
5542
(see [Replacing and updating jobs](../job-key.md#replacingupdating-jobs) and
5643
[removing jobs](../job-key.md#removing-jobs))
5744

45+
:::warning Avoid high cardinality in queue names
46+
47+
Avoid using high cardinality values (e.g., random strings, UUIDs, timestamps)
48+
for queue names as this will create many dead queues that degrade performance
49+
and require [periodic database cleanup](../admin-functions.md#gc_job_queues). If
50+
you find yourself needing to run the `GC_JOB_QUEUES` cleanup task regularly,
51+
you're likely using queue names incorrectly.
52+
53+
:::
54+
5855
Example:
5956

6057
```js

0 commit comments

Comments
 (0)