mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add parent config
This commit is contained in:
parent
1bccf33320
commit
9c28726a9b
1 changed files with 2 additions and 1 deletions
|
|
@ -66,11 +66,12 @@ export const bulkAction = async (data: BulkActionData, id?: string) => {
|
|||
try {
|
||||
await queue.add(BATCH_UPDATE_JOB_NAME, data, {
|
||||
attempts: 1,
|
||||
priority: 10,
|
||||
priority: 5,
|
||||
jobId, // deduplication
|
||||
removeOnComplete: true,
|
||||
removeOnFail: true,
|
||||
parent, // for tracking
|
||||
removeDependencyOnFailure: true,
|
||||
})
|
||||
} catch (error) {
|
||||
logger.error('Error enqueuing batch update job', error)
|
||||
|
|
|
|||
Loading…
Reference in a new issue