climate-ref-celery 0.8.0__py3-none-any.whl → 0.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- climate_ref_celery/celeryconf/base.py +4 -1
- {climate_ref_celery-0.8.0.dist-info → climate_ref_celery-0.9.0.dist-info}/METADATA +1 -1
- {climate_ref_celery-0.8.0.dist-info → climate_ref_celery-0.9.0.dist-info}/RECORD +7 -7
- {climate_ref_celery-0.8.0.dist-info → climate_ref_celery-0.9.0.dist-info}/WHEEL +0 -0
- {climate_ref_celery-0.8.0.dist-info → climate_ref_celery-0.9.0.dist-info}/entry_points.txt +0 -0
- {climate_ref_celery-0.8.0.dist-info → climate_ref_celery-0.9.0.dist-info}/licenses/LICENCE +0 -0
- {climate_ref_celery-0.8.0.dist-info → climate_ref_celery-0.9.0.dist-info}/licenses/NOTICE +0 -0
|
@@ -4,13 +4,16 @@ Base configuration for Celery.
|
|
|
4
4
|
Other environments can use these settings as a base and override them as needed.
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import os
|
|
8
|
+
|
|
9
|
+
from climate_ref_core.env import get_available_cpu_count, get_env
|
|
8
10
|
|
|
9
11
|
env = get_env()
|
|
10
12
|
|
|
11
13
|
broker_url = env.str("CELERY_BROKER_URL", "redis://localhost:6379/1")
|
|
12
14
|
result_backend = env.str("CELERY_RESULT_BACKEND", broker_url)
|
|
13
15
|
broker_connection_retry_on_startup = True
|
|
16
|
+
worker_concurrency = os.environ.get("CELERY_WORKER_CONCURRENCY", get_available_cpu_count())
|
|
14
17
|
|
|
15
18
|
# Accept JSON and pickle as content
|
|
16
19
|
accept_content = ["json", "pickle"]
|
|
@@ -6,12 +6,12 @@ climate_ref_celery/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
6
6
|
climate_ref_celery/tasks.py,sha256=6Ra2H48edbcklsf6pAj1JNfzi67n6WQCUXJs-tloE80,1941
|
|
7
7
|
climate_ref_celery/worker_tasks.py,sha256=slUprhM8G14D3r6RACSh2alzj-_JWXU4JKG5GR0GLpA,1194
|
|
8
8
|
climate_ref_celery/celeryconf/__init__.py,sha256=xKcHhnECGZAxrjnMtfaPBU_vgqwRbRLXFw8WVQ7WxaE,314
|
|
9
|
-
climate_ref_celery/celeryconf/base.py,sha256=
|
|
9
|
+
climate_ref_celery/celeryconf/base.py,sha256=PVour8foMrozBv6y_6ca6Mward_mnlCyW8WJCtmFA9U,612
|
|
10
10
|
climate_ref_celery/celeryconf/dev.py,sha256=um7hvEhlTBfwey9ler_vAHAln_DrpqAP3fbbO2wdmUQ,217
|
|
11
11
|
climate_ref_celery/celeryconf/prod.py,sha256=HyGTfwTZD8MjIkfkb3qyfzjjTPE9sKAoXNq3fJDFO9Q,231
|
|
12
|
-
climate_ref_celery-0.
|
|
13
|
-
climate_ref_celery-0.
|
|
14
|
-
climate_ref_celery-0.
|
|
15
|
-
climate_ref_celery-0.
|
|
16
|
-
climate_ref_celery-0.
|
|
17
|
-
climate_ref_celery-0.
|
|
12
|
+
climate_ref_celery-0.9.0.dist-info/METADATA,sha256=MludOjdo0yzqb0Oq7aHPbztZPcpkD67rmDJnjjUtFjY,3693
|
|
13
|
+
climate_ref_celery-0.9.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
14
|
+
climate_ref_celery-0.9.0.dist-info/entry_points.txt,sha256=U9b-T6EpLV3ZXmHUpEzp8x5TZnCjQ1ynncIkFMwDuPE,58
|
|
15
|
+
climate_ref_celery-0.9.0.dist-info/licenses/LICENCE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
16
|
+
climate_ref_celery-0.9.0.dist-info/licenses/NOTICE,sha256=4qTlax9aX2-mswYJuVrLqJ9jK1IkN5kSBqfVvYLF3Ws,128
|
|
17
|
+
climate_ref_celery-0.9.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|