Skip to content

Commit

Permalink
Merge pull request #24 from LNStudios/neg-tz-bug
Browse files Browse the repository at this point in the history
fix error running process_queue in a tz with a negative offset
  • Loading branch information
alexeyts authored Apr 27, 2018
2 parents 5645cae + 712fd84 commit ff430e0
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)
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 ff430e0

Please sign in to comment.