mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3462 from omnivore-app/fix/rule-job-priority
fix: assign the rule job with priority 1 and do not retry
This commit is contained in:
commit
c8b687fa63
1 changed files with 3 additions and 0 deletions
|
|
@ -594,6 +594,7 @@ export const enqueueThumbnailJob = async (
|
|||
return queue.add(THUMBNAIL_JOB, payload, {
|
||||
priority: 100,
|
||||
attempts: 1,
|
||||
removeOnComplete: true,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -655,6 +656,8 @@ export const enqueueTriggerRuleJob = async (data: TriggerRuleJobData) => {
|
|||
}
|
||||
|
||||
return queue.add(TRIGGER_RULE_JOB_NAME, data, {
|
||||
priority: 1,
|
||||
attempts: 1,
|
||||
removeOnComplete: true,
|
||||
removeOnFail: true,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue