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.
Files changed (23) hide show
  1. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/.gitignore +10 -1
  2. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/PKG-INFO +1 -1
  3. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/pyproject.toml +1 -1
  4. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/celeryconf/base.py +4 -1
  5. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/LICENCE +0 -0
  6. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/NOTICE +0 -0
  7. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/README.md +0 -0
  8. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/__init__.py +0 -0
  9. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/app.py +0 -0
  10. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/celeryconf/__init__.py +0 -0
  11. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/celeryconf/dev.py +0 -0
  12. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/celeryconf/prod.py +0 -0
  13. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/cli.py +0 -0
  14. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/executor.py +0 -0
  15. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/py.typed +0 -0
  16. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/tasks.py +0 -0
  17. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/src/climate_ref_celery/worker_tasks.py +0 -0
  18. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/tests/conftest.py +0 -0
  19. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/tests/unit/test_app.py +0 -0
  20. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/tests/unit/test_cli.py +0 -0
  21. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/tests/unit/test_executor.py +0 -0
  22. {climate_ref_celery-0.8.1 → climate_ref_celery-0.9.0}/tests/unit/test_tasks.py +0 -0
  23. {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/*
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: climate-ref-celery
3
- Version: 0.8.1
3
+ Version: 0.9.0
4
4
  Summary: Celery app for mananging tasks and workers
5
5
  Author-email: Jared Lewis <jared.lewis@climate-resource.com>
6
6
  License-Expression: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "climate-ref-celery"
3
- version = "0.8.1"
3
+ version = "0.9.0"
4
4
  description = "Celery app for mananging tasks and workers"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -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
- from climate_ref_core.env import get_env
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"]