Skip to content

Commit

Permalink
Tentative "fix" for #592
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Mar 22, 2021
1 parent 6c899b4 commit d39345a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion huey/contrib/djhuey/management/commands/run_huey.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,14 @@ def handle(self, *args, **options):
# Python 3.8+ on MacOS uses an incompatible multiprocess model. In this
# case we must explicitly configure mp to use fork().
if sys.version_info >= (3, 8) and sys.platform == 'darwin':
# Apparently this was causing a "context has already been set"
# error for some user. We'll just pass and hope for the best.
# They're apple users so presumably nothing important will be lost.
import multiprocessing
multiprocessing.set_start_method('fork')
try:
multiprocessing.set_start_method('fork')
except RuntimeError:
pass

consumer_options = {}
try:
Expand Down

0 comments on commit d39345a

Please sign in to comment.