climate-ref-celery 0.8.1__tar.gz → 0.9.0__tar.gz
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-0.8.1 → climate_ref_celery-0.9.0}/.gitignore +10 -1
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/PKG-INFO +1 -1
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/pyproject.toml +1 -1
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/celeryconf/base.py +4 -1
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/LICENCE +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/NOTICE +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/README.md +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/__init__.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/app.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/celeryconf/__init__.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/celeryconf/dev.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/celeryconf/prod.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/cli.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/executor.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/py.typed +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/tasks.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/worker_tasks.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/tests/conftest.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/tests/unit/test_app.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/tests/unit/test_cli.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/tests/unit/test_executor.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/tests/unit/test_tasks.py +0 -0
- {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/tests/unit/test_worker_tasks.py +0 -0
|
@@ -150,7 +150,7 @@ dmypy.json
|
|
|
150
150
|
|
|
151
151
|
# Generated output
|
|
152
152
|
out
|
|
153
|
-
.ref
|
|
153
|
+
.ref*
|
|
154
154
|
|
|
155
155
|
# Ignore copied LICENCE/NOTICE files
|
|
156
156
|
packages/*/LICENCE
|
|
@@ -158,3 +158,12 @@ packages/*/NOTICE
|
|
|
158
158
|
|
|
159
159
|
# Local directory for data
|
|
160
160
|
/data
|
|
161
|
+
|
|
162
|
+
# Generated SDK
|
|
163
|
+
/climate_ref_client
|
|
164
|
+
|
|
165
|
+
# User-specific catalog paths (test data)
|
|
166
|
+
*.paths.yaml
|
|
167
|
+
|
|
168
|
+
# Helm dependencies
|
|
169
|
+
helm/charts/*
|
{climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/celeryconf/base.py
RENAMED
|
@@ -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"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/celeryconf/__init__.py
RENAMED
|
File without changes
|
{climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/celeryconf/dev.py
RENAMED
|
File without changes
|
{climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/celeryconf/prod.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/worker_tasks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|