Skip to content

Commit

Permalink
Avoid multiprocessing error.
Browse files Browse the repository at this point in the history
Fixes #592
  • Loading branch information
coleifer committed Apr 5, 2021
1 parent 53933ad commit 179809e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion huey/bin/huey_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,8 @@ def consumer_main():
if __name__ == '__main__':
if sys.version_info >= (3, 8) and sys.platform == 'darwin':
import multiprocessing
multiprocessing.set_start_method('fork')
try:
multiprocessing.set_start_method('fork')
except RuntimeError:
pass
consumer_main()

0 comments on commit 179809e

Please sign in to comment.