Skip to content

Commit

Permalink
Conveyor : Implement protection against double submission : Closes ru…
Browse files Browse the repository at this point in the history
  • Loading branch information
cserf authored and Ruturaj123 committed Jun 19, 2019
1 parent 5ebb831 commit 74796b7
Show file tree
Hide file tree
Showing 3 changed files with 161 additions and 90 deletions.
12 changes: 11 additions & 1 deletion lib/rucio/common/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# - Mario Lassnig <mario.lassnig@cern.ch>, 2012-2017
# - Vincent Garonne <vgaronne@gmail.com>, 2012-2018
# - Ralph Vigne <ralph.vigne@cern.ch>, 2012-2013
# - Cedric Serfon <cedric.serfon@cern.ch>, 2013-2018
# - Cedric Serfon <cedric.serfon@cern.ch>, 2013-2019
# - Wen Guan <wguan.icedew@gmail.com>, 2014-2015
# - Tobias Wegner <twegner@cern.ch>, 2018
# - Hannes Hansen <hannes.jakob.hansen@cern.ch>, 2018-2019
Expand Down Expand Up @@ -942,3 +942,13 @@ def __init__(self, *args, **kwargs):
super(UnsupportedRequestedContentType, self).__init__(*args, **kwargs)
self._message = 'The requested content type is not supported.'
self.error_code = 89


class DuplicateFileTransferSubmission(RucioException):
"""
The requested content type is not supported by the API endpoint.
"""
def __init__(self, *args, **kwargs):
super(DuplicateFileTransferSubmission, self).__init__(*args, **kwargs)
self._message = 'One or more files are already submitted to the transfer tool'
self.error_code = 90

0 comments on commit 74796b7

Please sign in to comment.