Circle V2 API Docs
Preparing search index...
@repo/db
jobExecutionsRepo
Variable jobExecutionsRepo
Const
jobExecutionsRepo
:
DbRepo
<
{
cleanupExpiredJobs
:
(
retentionDays
:
number
)
=>
Promise
<
DeleteResult
[]
>
;
getByEnqueuedId
:
(
enqueuedId
:
string
,
)
=>
Promise
<
{
enqueued_at
:
DbDate
}
|
undefined
>
;
getLatestSuccessfulDocumentSync
:
(
patientId
:
PatientId
,
beforeIso
?:
string
|
null
,
)
=>
Promise
<
string
|
null
>
;
getUnexpiredJobByKey
:
(
key
:
string
,
)
=>
Promise
<
|
{
completed_at
:
DbDate
|
null
;
enqueued_at
:
DbDate
;
enqueued_id
:
string
;
entity_id
:
number
|
null
;
expires_at
:
string
;
id
:
JobExecutionId
;
key
:
string
;
payload
:
Record
<
string
,
unknown
>
|
null
;
started_at
:
DbDate
|
null
;
status
:
"success"
|
"running"
|
"failed"
|
"pending"
;
}
|
undefined
,
>
;
recordJobExecution
:
(
params
:
RecordJobExecutionParams
,
)
=>
Promise
<
{
completed_at
:
DbDate
|
null
;
enqueued_at
:
DbDate
;
enqueued_id
:
string
;
entity_id
:
number
|
null
;
expires_at
:
string
;
id
:
JobExecutionId
;
key
:
string
;
payload
:
Record
<
string
,
unknown
>
|
null
;
started_at
:
DbDate
|
null
;
status
:
"success"
|
"running"
|
"failed"
|
"pending"
;
}
,
>
;
setJobStatus
:
(
enqueuedId
:
string
,
status
:
"success"
|
"running"
|
"failed"
|
"pending"
,
)
=>
Promise
<
{
completed_at
:
DbDate
|
null
;
enqueued_at
:
DbDate
;
enqueued_id
:
string
;
entity_id
:
number
|
null
;
expires_at
:
string
;
id
:
JobExecutionId
;
key
:
string
;
payload
:
Record
<
string
,
unknown
>
|
null
;
started_at
:
DbDate
|
null
;
status
:
"success"
|
"running"
|
"failed"
|
"pending"
;
}
,
>
;
}
,
>
= ...
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...