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

Handle connection error on async exports #1237

Merged
merged 3 commits into from
Feb 8, 2018
Merged

Conversation

ukanga
Copy link
Member

@ukanga ukanga commented Feb 7, 2018

No description provided.

try:
result = export_types[export_type].apply_async((), kwargs=options)
except librabbitmq.ConnectionError as e:
export.delete()
Copy link
Member

Choose a reason for hiding this comment

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

why do we delete the export? could you add a comment

Copy link
Member Author

Choose a reason for hiding this comment

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

The export did not start, I consider this failure as the export service being down but not a failure related to the data being exported. I think it is important we log the failure but it's not necessary to maintain the record. @moshthepitt seems it's important to have the record, I am going to remove the delete.

@ukanga ukanga merged commit 04d5f74 into master Feb 8, 2018
@ukanga ukanga deleted the handle-connection-error-1219 branch February 8, 2018 09:22
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.

3 participants