icij-worker 0.2.2__tar.gz → 0.2.4__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 (34) hide show
  1. {icij_worker-0.2.2 → icij_worker-0.2.4}/PKG-INFO +2 -2
  2. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/backend/mp.py +3 -0
  3. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/worker/config.py +1 -0
  4. {icij_worker-0.2.2 → icij_worker-0.2.4}/pyproject.toml +2 -2
  5. {icij_worker-0.2.2 → icij_worker-0.2.4}/README.md +0 -0
  6. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/__init__.py +0 -0
  7. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/__main__.py +0 -0
  8. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/app.py +0 -0
  9. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/backend/__init__.py +0 -0
  10. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/backend/backend.py +0 -0
  11. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/cli/__init__.py +0 -0
  12. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/cli/workers.py +0 -0
  13. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/event_publisher/__init__.py +0 -0
  14. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/event_publisher/amqp.py +0 -0
  15. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/event_publisher/event_publisher.py +0 -0
  16. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/event_publisher/neo4j_.py +0 -0
  17. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/exceptions.py +0 -0
  18. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/task.py +0 -0
  19. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/task_manager/__init__.py +0 -0
  20. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/task_manager/neo4j_.py +0 -0
  21. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/typing_.py +0 -0
  22. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/utils/__init__.py +0 -0
  23. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/utils/dependencies.py +0 -0
  24. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/utils/from_config.py +0 -0
  25. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/utils/imports.py +0 -0
  26. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/utils/logging_.py +0 -0
  27. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/utils/progress.py +0 -0
  28. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/utils/registrable.py +0 -0
  29. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/utils/tests.py +0 -0
  30. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/worker/__init__.py +0 -0
  31. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/worker/amqp.py +0 -0
  32. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/worker/neo4j_.py +0 -0
  33. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/worker/process.py +0 -0
  34. {icij_worker-0.2.2 → icij_worker-0.2.4}/icij_worker/worker/worker.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: icij-worker
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: Create asynchronous tasks from Python functions
5
5
  Author: Clément Doumouro
6
6
  Author-email: cdoumouro@icij.org
@@ -11,7 +11,7 @@ Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
13
  Requires-Dist: aio-pika (>=9.4.0,<10.0.0)
14
- Requires-Dist: icij_common (>=0.1.3,<0.2.0)
14
+ Requires-Dist: icij_common (>=0.1.4,<0.2.0)
15
15
  Requires-Dist: typer[all] (>=0.9.0,<0.10.0)
16
16
  Description-Content-Type: text/markdown
17
17
 
@@ -8,6 +8,8 @@ import sys
8
8
  from contextlib import contextmanager
9
9
  from typing import Callable, Dict, List, Optional, Tuple
10
10
 
11
+ import icij_worker
12
+ from icij_common.logging_utils import setup_loggers
11
13
  from icij_worker import AsyncApp, Worker, WorkerConfig
12
14
 
13
15
  logger = logging.getLogger(__name__)
@@ -25,6 +27,7 @@ def _mp_work_forever(
25
27
  worker_extras: Optional[Dict] = None,
26
28
  app_deps_extras: Optional[Dict] = None,
27
29
  ):
30
+ setup_loggers(["__main__", icij_worker.__name__])
28
31
  if worker_extras is None:
29
32
  worker_extras = dict()
30
33
  if app_deps_extras is None:
@@ -13,6 +13,7 @@ from icij_worker.utils.registrable import RegistrableConfig
13
13
  class WorkerConfig(RegistrableConfig, ABC):
14
14
  registry_key: ClassVar[str] = Field(const=True, default="type")
15
15
 
16
+ app_config_path: Optional[Path] = None
16
17
  inactive_after_s: Optional[float] = None
17
18
  log_level: str = "INFO"
18
19
  task_queue_poll_interval_s: float = 1.0
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "icij-worker"
3
- version = "0.2.2"
3
+ version = "0.2.4"
4
4
  description = "Create asynchronous tasks from Python functions"
5
5
  authors = [
6
6
  "Clément Doumouro <cdoumouro@icij.org>",
@@ -29,7 +29,7 @@ icij-worker = "icij_worker.__main__:cli_app"
29
29
 
30
30
  [tool.poetry.dependencies]
31
31
  python = "^3.9"
32
- icij_common = "^0.1.3"
32
+ icij_common = "^0.1.4"
33
33
  typer = { extras = ["all"], version = "^0.9.0" }
34
34
  aio-pika = "^9.4.0"
35
35
 
File without changes