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:
Jackson Harper 2024-01-30 18:42:51 +08:00 committed by GitHub
commit c8b687fa63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
})