Automattic / Automattic/kue

max_attempts is only set on job creation

Open
#612 10 comments 0 reactions 1 assignee Claimed by @behrad View on GitHub
Bug Optimization
Dominant language
JavaScript
Stars
9.4k
Forks
858
PR merge metrics
No merged PRs in 30d

Description

Hi,
I am using Kue 0.8.9 and my jobs have 5 attempts by default.
When processing a single job on some conditions I want to move the job to a "failed" state where no more attempts should be done. How to do it?

I already tried to manipulate the attempts() (e.g. `job.attempts(1).save()`) but it didn't work.
I had the same result when manipulating the state, _max_attempts, _attempts and so on.

Thanks for your help,
Paulo

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.