-
Notifications
You must be signed in to change notification settings - Fork 1
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 exception while distributer not availble #219
Handle exception while distributer not availble #219
Conversation
- verify whether the files are removed from workdir if any of the distributers fail or all distributers succeed.
- Handled exceptions due to unavailabilty of distributers. - If any of the distributers is unavailable while distribution, api throws a 503 exception, so mmd-agent can retry sending that file later. - Fixed a test error.
…overage. -Handled unavailabity of distributer in delete endpoint also. -Added test cases to test the exception handling while distributer is unavailable . -Improved test coverage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to wok on the distribute
function. See comments. Also, the errors seem to occur in dmci/distributors/distributor.py
. As such, the error handling should be done there.
Co-authored-by: Morten W. Hansen <109061+mortenwh@users.noreply.github.com>
-If any distributor is not available `status` becomes `False`, and moved to rejected. -improved test coverage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes needed..
Co-authored-by: Morten W. Hansen <109061+mortenwh@users.noreply.github.com>
Co-authored-by: Morten W. Hansen <109061+mortenwh@users.noreply.github.com>
Co-authored-by: Morten W. Hansen <109061+mortenwh@users.noreply.github.com>
Co-authored-by: Morten W. Hansen <109061+mortenwh@users.noreply.github.com>
Co-authored-by: Morten W. Hansen <109061+mortenwh@users.noreply.github.com>
Co-authored-by: Morten W. Hansen <109061+mortenwh@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small thing and then it's good - thanks!
Summary: closes #218
Related issue:
Suggested reviewer(s):
Reviewer checklist:
The checklist is based on the S-ENDA conventions and definition of done (see General Conventions). The above points are not necessarily relevant to all contributions. In that case, please add a short explanation to help the reviewer.