Skip to content

Commit 33a8d07

Browse files
committed
Use billiard instead of multiprocessing
Multiprocessing lib is causing this library to be unusable in celery environment, due to celery worker daemon process can't spawn another child. While spawning another child is important, because opening pylokit.Office more than once can cause system exit 77 / 139. Replacing multiprocessing with billiard enables this library to run in celery environment.
1 parent a39918f commit 33a8d07

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.3.3
2+
current_version = 0.3.4
33
commit = True
44
tag = True
55
tag_name = {new_version}

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
requirements = [
1515
'pylokit==0.8.1',
1616
'django>=1.8,<1.12',
17+
'billiard>=3.5.0.2,<3.6.0',
1718
]
1819

1920
test_requirements = [
@@ -22,7 +23,7 @@
2223

2324
setup(
2425
name='jpt-templated-docs',
25-
version='0.3.3',
26+
version='0.3.4',
2627
description=('Generate PDF, MS Word and Excel documents from templates '
2728
'in Django.'),
2829
long_description=readme + '\n\n' + history,

templated_docs/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
import multiprocessing
3+
import billiard as multiprocessing
44
import os.path
55
import re
66
from tempfile import NamedTemporaryFile
@@ -24,7 +24,7 @@
2424
import logging
2525
log = logging.getLogger(__name__)
2626

27-
__version__ = '0.3.3'
27+
__version__ = '0.3.4'
2828

2929

3030
IMAGES_CONTEXT_KEY = '_templated_docs_imgs'

0 commit comments

Comments
 (0)