clyops Node API
Preparing search index...
packages/jobs/src
transitionJobRecord
Function transitionJobRecord
transitionJobRecord
(
record
:
JobRecord
,
change
:
{
completedAt
?:
string
|
null
;
error
?:
string
|
null
;
extra
?:
Record
<
string
,
unknown
>
;
now
?:
string
;
resultKey
?:
string
|
null
;
stage
?:
string
|
null
;
status
:
JobStatus
;
}
,
)
:
JobRecord
Move a record on, pushing its current state onto the front of
history
. Returns a new record.
Parameters
record
:
JobRecord
change
:
{
completedAt
?:
string
|
null
;
error
?:
string
|
null
;
extra
?:
Record
<
string
,
unknown
>
;
now
?:
string
;
resultKey
?:
string
|
null
;
stage
?:
string
|
null
;
status
:
JobStatus
;
}
Returns
JobRecord
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
clyops Node API
Loading...
Move a record on, pushing its current state onto the front of
history. Returns a new record.