-
-
Notifications
You must be signed in to change notification settings - Fork 109
docs: improve queueName docs to avoid high cardinality #558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,8 +28,21 @@ The `addJob` arguments are as follows: | |
| - `payload`: an optional JSON-compatible object to give the task more context on | ||
| what it is doing, or a list of these objects in “batch job” mode | ||
| - `options`: an optional object specifying: | ||
|
|
||
| - `queueName`: if you want certain jobs to run one at a time, add them to the | ||
| same named queue (defaults to null which enables parallelization) | ||
|
|
||
| :::warning | ||
|
|
||
| Avoid using high cardinality values (e.g., random strings, UUIDs, | ||
| timestamps) for queue names as this will create many dead queues that | ||
| degrade performance and require | ||
| [periodic database cleanup](../admin-functions.md#gc_job_queues). If you | ||
| find yourself needing to run the `GC_JOB_QUEUES` cleanup task regularly, | ||
| you're likely using queue names incorrectly. | ||
|
|
||
| ::: | ||
|
|
||
|
||
| - `runAt`: a `Date` to schedule this task to run in the future | ||
| - `maxAttempts`: the maximum number of attempts we'll give the job | ||
| (Default: 25) | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feedback is welcome on the phrasing here - I don't feel strongly!