Skip to content

Commit 1341f69

Browse files
authored
refactor: deprecate job queue depth property (#14402)
Similar to how we deprecated the `runHooks` property in #13617, this PR deprecates the `depth` property. Just like `runHooks`, setting depth to 1 or higher will massively slow down the job system and make it less reliable. It's also adds a lot of unnecessary code we will need to maintain. To further discourage using this property, this PR marks it as deprecated and for removal in 4.0.
1 parent d5f4e72 commit 1341f69

File tree

1 file changed

+1
-0
lines changed
  • packages/payload/src/queues/config/types

1 file changed

+1
-0
lines changed

packages/payload/src/queues/config/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export type JobsConfig = {
127127
* queries will be used.
128128
*
129129
* @default 0
130+
* @deprecated - this will be removed in 4.0
130131
*/
131132
depth?: number
132133
/**

0 commit comments

Comments
 (0)