From 712fd843104907716836d6c8af5c081e60ea4c8a Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Fri, 27 Apr 2018 10:11:30 -0700 Subject: [PATCH] clean up logic, credit to @alexeyts --- eb_sqs/worker/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eb_sqs/worker/service.py b/eb_sqs/worker/service.py index 3282652..ea28a4c 100644 --- a/eb_sqs/worker/service.py +++ b/eb_sqs/worker/service.py @@ -36,7 +36,7 @@ def process_queues(self, queue_names): queue_prefixes = [prefix.split(self._PREFIX_STR)[1] for prefix in prefixes] static_queues = queues - last_update_time = timezone.make_aware(datetime.min + timedelta(hours=24)) + last_update_time = timezone.now() - timedelta(seconds=settings.REFRESH_PREFIX_QUEUES_S) logger.debug('[django-eb-sqs] Connected to SQS: {}'.format(', '.join(queue_names)))