BatchJobService
Properties
__configModule__
Record<string, unknown>__container__
anyRequired__moduleDeclaration__
Record<string, unknown>batchJobStatusMapToProps
Map<BatchJobStatus, { entityColumnName: string ; eventType: string }>Requiredmanager_
EntityManagerRequiredtransactionManager_
undefined | EntityManagerRequiredEvents
objectRequiredEvents.CANCELED
stringRequiredEvents.COMPLETED
stringRequiredEvents.CONFIRMED
stringRequiredEvents.CREATED
stringRequiredEvents.FAILED
stringRequiredEvents.PRE_PROCESSED
stringRequiredEvents.PROCESSING
stringRequiredEvents.UPDATED
stringRequiredAccessors
activeManager_
Returns
EntityManager
EntityManagerRequiredMethods
atomicPhase_
Wraps some work within a transactional block. If the service already has a transaction manager attached this will be reused, otherwise a new transaction manager is created.
Parameters
work
(transactionManager: EntityManager) => Promise<TResult>Requiredthe transactional work to be done
isolationOrErrorHandler
IsolationLevel | (error: TError) => Promise<void | TResult>the isolation level to be used for the work.
maybeErrorHandlerOrDontFail
(error: TError) => Promise<void | TResult>Potential error handler
Returns
Promise
Promise<TResult>Requiredthe result of the transactional work
cancel
Parameters
Returns
complete
Parameters
Returns
confirm
Parameters
Returns
create
Parameters
Returns
listAndCount
Parameters
selector
FilterableBatchJobPropsconfig
FindConfig<BatchJob>Returns
prepareBatchJobForProcessing
Parameters
req
Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>RequiredReturns
retrieve
Parameters
batchJobId
stringRequiredconfig
FindConfig<BatchJob>Returns
setFailed
Parameters
error
string | BatchJobResultErrorReturns
setPreProcessingDone
Parameters
Returns
setProcessing
Parameters
Returns
shouldRetryTransaction_
Parameters
err
Record<string, unknown> | { code: string }RequiredReturns
boolean
booleanupdate
Parameters
Returns
updateStatus
Parameters
Returns
withTransaction
Parameters
transactionManager
EntityManagerReturns
Was this section helpful?