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

Add a task to Redis if it is no longer tracked after NACKing #187

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

catileptic
Copy link
Contributor

No description provided.

@@ -319,7 +319,6 @@ def mark_for_retry(self, task):
f" for retry after NACK"
)

pipe.sadd(make_key(stage_key, "pending"), task.task_id)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this since we are calling add_task if a task is no longer being tracked by Redis and it is about to be NACK'ed. add_task already increases the number of pending tasks, so this is no longer needed.

"task_id": "test-task",
"job_id": "test-job",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just changed the order to match the order of args in Task()

Copy link
Contributor

@stchris stchris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@stchris stchris merged commit 53ef724 into release/1.23.0 Jun 19, 2024
1 check passed
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.

2 participants