Skip to content

Commit

Permalink
Merge pull request #7 from PatrickTaibel/ptaibel/SIANXSVC-1060_timeou…
Browse files Browse the repository at this point in the history
…t_clear_queue

SIANXSVC-1060: Fix queues not cleaned up after an `AMQPWaitTimeoutException`
  • Loading branch information
beachmachine authored Nov 3, 2023
2 parents 0762340 + 36cd2d1 commit acd43c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion celery_amqp_backend/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import celery.exceptions

__all__ = [
'AMQPBacklogLimitExceededException',
'AMQPWaitEmptyException',
Expand Down Expand Up @@ -25,5 +27,5 @@ class AMQPWaitEmptyException(BaseCeleryException):
_msg_template = 'No message got drained from the queue while waiting for "{task}".'


class AMQPWaitTimeoutException(BaseCeleryException, TimeoutError):
class AMQPWaitTimeoutException(BaseCeleryException, celery.exceptions.TimeoutError):
_msg_template = 'The operation timed out.'

0 comments on commit acd43c3

Please sign in to comment.