@@ -84,7 +84,9 @@ export interface AddJobsJobSpec<
8484
8585 /**
8686 * The queue to run this task under (only specify if you want jobs in this
87- * queue to run serially). (Default: null)
87+ * queue to run serially). Avoid using high cardinality values (e.g., random
88+ * strings, UUIDs, timestamps) as this degrades performance and requires
89+ * periodic database cleanup. (Default: null)
8890 */
8991 queueName ?: string ;
9092
@@ -336,7 +338,9 @@ export interface CronItemOptions {
336338 /** Optionally override the default job max_attempts */
337339 maxAttempts ?: number ;
338340
339- /** Optionally set the job queue_name to enforce that the jobs run serially */
341+ /** Optionally set the job queue_name to enforce that the jobs run serially.
342+ * Avoid using high cardinality values (e.g., random strings, UUIDs, timestamps)
343+ * as this degrades performance and requires periodic database cleanup. */
340344 queueName ?: string ;
341345
342346 /** Optionally set the job priority */
@@ -586,7 +590,9 @@ export interface Cron {
586590export interface TaskSpec {
587591 /**
588592 * The queue to run this task under (only specify if you want jobs in this
589- * queue to run serially). (Default: null)
593+ * queue to run serially). Avoid using high cardinality values (e.g., random
594+ * strings, UUIDs, timestamps) as this degrades performance and requires
595+ * periodic database cleanup. (Default: null)
590596 */
591597 queueName ?: string ;
592598
0 commit comments