Example #1
0
 def _put(self, item):
     if isinstance(item, CompleteMultipartUploadTask):
         # Raising this exception will trigger the
         # "error" case shutdown in the executor.
         raise RuntimeError(
             "Forced error on enqueue of complete task.")
     return StablePriorityQueue._put(self, item)
Example #2
0
 def _put(self, item):
     if isinstance(item, CompleteMultipartUploadTask):
         # Raising this exception will trigger the
         # "error" case shutdown in the executor.
         raise RuntimeError(
             "Forced error on enqueue of complete task.")
     return StablePriorityQueue._put(self, item)