Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support pending state #2687

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: support pending state #2687

wants to merge 1 commit into from

Conversation

roggervalf
Copy link
Collaborator

@roggervalf roggervalf commented Aug 3, 2024

similar as #2465. In this pr it's introduced a new state called pending (not active but it's being considered when checking if a queue is maxed). While a job is moved to active for the first time and it has this pending option, a reference in pending zset is added only when this job is moved to delayed or waiting-children. Pending reference will be present as long as the job is still in delayed or waiting-children, then removed when job is moved back to waiting (it's readded into waiting at the head of the queue).
DRAFT:
TODO:

  • Consider removal: clean, obliterate, removeJob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant