fix: assign the rule job with priority 1 and do not retry

This commit is contained in:
Hongbo Wu
2024-01-30 18:14:34 +08:00
parent 814a2bf519
commit 2eedba1522

View File

@ -655,6 +655,8 @@ export const enqueueTriggerRuleJob = async (data: TriggerRuleJobData) => {
}
return queue.add(TRIGGER_RULE_JOB_NAME, data, {
priority: 1,
attempts: 1,
removeOnComplete: true,
removeOnFail: true,
})