bullmq - v5.64.0
Preparing search index...
v5
SandboxedJob
Interface SandboxedJob<T, R>
See
https://docs.bullmq.io/guide/workers/sandboxed-processors
interface
SandboxedJob
<
T
=
any
,
R
=
any
>
{
attemptsMade
:
number
;
attemptsStarted
:
number
;
data
:
T
;
debounceId
?:
string
;
deduplicationId
?:
string
;
failedReason
:
string
;
finishedOn
?:
number
;
id
:
string
;
log
:
(
row
:
any
)
=>
void
;
moveToDelayed
:
(
timestamp
:
number
,
token
?:
string
)
=>
Promise
<
void
>
;
moveToWait
:
(
token
?:
string
)
=>
Promise
<
void
>
;
moveToWaitingChildren
:
(
token
?:
string
,
opts
?:
MoveToWaitingChildrenOpts
,
)
=>
Promise
<
boolean
>
;
name
:
string
;
nextRepeatableJobKey
?:
string
;
opts
:
JobsOptions
;
parent
?:
ParentKeys
;
parentKey
?:
string
;
prefix
:
string
;
processedBy
?:
string
;
processedOn
?:
number
;
progress
:
JobProgress
;
queueName
:
string
;
queueQualifiedName
:
string
;
repeatJobKey
?:
string
;
returnvalue
:
string
;
returnValue
:
R
;
stacktrace
:
string
;
stalledCounter
:
number
;
timestamp
:
number
;
updateData
:
(
data
:
any
)
=>
Promise
<
void
>
;
updateProgress
:
(
value
:
JobProgress
)
=>
Promise
<
void
>
;
}
Type Parameters
T
=
any
R
=
any
Hierarchy
Omit
<
JobJsonSandbox
,
"data"
|
"opts"
|
"returnValue"
>
SandboxedJob
Index
Properties
attempts
Made
attempts
Started
data
debounce
Id?
deduplication
Id?
failed
Reason
finished
On?
id
log
move
To
Delayed
move
To
Wait
move
To
Waiting
Children
name
next
Repeatable
Job
Key?
opts
parent?
parent
Key?
prefix
processed
By?
processed
On?
progress
queue
Name
queue
Qualified
Name
repeat
Job
Key?
returnvalue
return
Value
stacktrace
stalled
Counter
timestamp
update
Data
update
Progress
Properties
attempts
Made
attemptsMade
:
number
attempts
Started
attemptsStarted
:
number
data
data
:
T
Optional
debounce
Id
debounceId
?:
string
Optional
deduplication
Id
deduplicationId
?:
string
failed
Reason
failedReason
:
string
Optional
finished
On
finishedOn
?:
number
id
id
:
string
log
log
:
(
row
:
any
)
=>
void
move
To
Delayed
moveToDelayed
:
(
timestamp
:
number
,
token
?:
string
)
=>
Promise
<
void
>
move
To
Wait
moveToWait
:
(
token
?:
string
)
=>
Promise
<
void
>
move
To
Waiting
Children
moveToWaitingChildren
:
(
token
?:
string
,
opts
?:
MoveToWaitingChildrenOpts
,
)
=>
Promise
<
boolean
>
name
name
:
string
Optional
next
Repeatable
Job
Key
nextRepeatableJobKey
?:
string
opts
opts
:
JobsOptions
Optional
parent
parent
?:
ParentKeys
Optional
parent
Key
parentKey
?:
string
prefix
prefix
:
string
Optional
processed
By
processedBy
?:
string
Optional
processed
On
processedOn
?:
number
progress
progress
:
JobProgress
queue
Name
queueName
:
string
queue
Qualified
Name
queueQualifiedName
:
string
Optional
repeat
Job
Key
repeatJobKey
?:
string
returnvalue
returnvalue
:
string
return
Value
returnValue
:
R
stacktrace
stacktrace
:
string
stalled
Counter
stalledCounter
:
number
timestamp
timestamp
:
number
update
Data
updateData
:
(
data
:
any
)
=>
Promise
<
void
>
update
Progress
updateProgress
:
(
value
:
JobProgress
)
=>
Promise
<
void
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
attempts
Made
attempts
Started
data
debounce
Id
deduplication
Id
failed
Reason
finished
On
id
log
move
To
Delayed
move
To
Wait
move
To
Waiting
Children
name
next
Repeatable
Job
Key
opts
parent
parent
Key
prefix
processed
By
processed
On
progress
queue
Name
queue
Qualified
Name
repeat
Job
Key
returnvalue
return
Value
stacktrace
stalled
Counter
timestamp
update
Data
update
Progress
bullmq - v5.64.0
Loading...
See
https://docs.bullmq.io/guide/workers/sandboxed-processors