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

Reset failure count on new registration #343

Conversation

erikh360
Copy link
Contributor

No description provided.

Copy link
Contributor

@rudigiesler rudigiesler left a comment

Choose a reason for hiding this comment

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

Just one small comment, looks good otherwise

time_limit=15,
)
def reset_delivery_failure(contact_id):
DeliveryFailure.objects.filter(contact_id=contact_id).update(number_of_failures=0)
Copy link
Contributor

Choose a reason for hiding this comment

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

contact_id is the primary key, so it has an index, so I don't think we need to do this as a background task, it should be fast enough to do it in the request.

@erikh360
Copy link
Contributor Author

Thanks @rudigiesler , ready for another look

@erikh360 erikh360 merged commit 92ce7dd into develop Jun 25, 2020
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