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

fix: don't nack already nacked tasks #141

Merged
merged 1 commit into from
Jan 3, 2024
Merged

fix: don't nack already nacked tasks #141

merged 1 commit into from
Jan 3, 2024

Conversation

ClemDoum
Copy link
Collaborator

@ClemDoum ClemDoum commented Jan 3, 2024

Bug description

Failing tasks could be nacked twice as Worker._current was not reset to None after acking or nacking a task.
When the worker was shutdown after working, the worker was trying to requeue the task.

Changes

neo4j-app

Fixed

  • set Worker._current = None right after acking or nacking tasks

@ClemDoum ClemDoum self-assigned this Jan 3, 2024
@ClemDoum ClemDoum marked this pull request as ready for review January 3, 2024 09:40
@ClemDoum ClemDoum added bug Something isn't working amqp-worker python labels Jan 3, 2024
@ClemDoum ClemDoum merged commit 4b73147 into main Jan 3, 2024
8 checks passed
@ClemDoum ClemDoum deleted the fix/double-nack branch January 3, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amqp-worker bug Something isn't working python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant