Skip to content

Commit 691e109

Browse files
author
Alexey Tsitkin
committed
cosmetic
1 parent e8ea59e commit 691e109

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

eb_sqs/worker/service.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ def process_queues(self, queue_names):
6969
logger.info('[django-eb-sqs] DEFAULT_MAX_RETRIES = {}'.format(settings.DEFAULT_MAX_RETRIES))
7070
logger.info('[django-eb-sqs] REFRESH_PREFIX_QUEUES_S = {}'.format(settings.REFRESH_PREFIX_QUEUES_S))
7171

72-
while True:
73-
if self._exit_gracefully:
74-
break
75-
72+
while not self._exit_gracefully:
7673
if len(queue_prefixes) > 0 and \
7774
timezone.now() - timedelta(seconds=settings.REFRESH_PREFIX_QUEUES_S) > last_update_time:
7875
queues = static_queues + self.get_queues_by_prefixes(sqs, queue_prefixes)

0 commit comments

Comments
 (0)