Skip to content

Commit

Permalink
clean up logic, credit to @alexeyts
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobevans committed Apr 27, 2018
1 parent 7274750 commit 712fd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eb_sqs/worker/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit 712fd84

Please sign in to comment.