Skip to content

Commit

Permalink
Merge pull request #586 from nokutana/master
Browse files Browse the repository at this point in the history
Use create_consumer in Django run_huey command
  • Loading branch information
coleifer committed Feb 24, 2021
2 parents bfa07f2 + 3f5a454 commit 1678066
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions huey/contrib/djhuey/management/commands/run_huey.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from django.core.management.base import BaseCommand
from django.utils.module_loading import autodiscover_modules

from huey.consumer import Consumer
from huey.consumer_options import ConsumerConfig
from huey.consumer_options import OptionParserHandler

Expand Down Expand Up @@ -82,5 +81,5 @@ def handle(self, *args, **options):
if not logger.handlers:
config.setup_logger(logger)

consumer = Consumer(HUEY, **config.values)
consumer = HUEY.create_consumer(**config.values)
consumer.run()

0 comments on commit 1678066

Please sign in to comment.