streamlit-octostar-utils 0.6.3.dev1__tar.gz → 0.6.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.
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/PKG-INFO +1 -1
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/pyproject.toml +1 -1
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/celery.py +7 -1
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/LICENSE +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/README.md +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/__init__.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/__init__.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/contents.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/fastapi.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/nifi.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/parallelism.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/parser/__init__.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/parser/combine_fields.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/parser/entities_parser.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/parser/generics.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/parser/info.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/parser/linkchart_functions.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/parser/matches.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/parser/parameters.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/parser/rules.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/api_crafter/parser/signals.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/core/__init__.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/core/dict.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/core/filetypes.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/core/opensearch_conversion.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/core/threading/__init__.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/core/threading/key_queue.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/core/timestamp.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/nlp/__init__.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/nlp/custom_recognizers.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/nlp/language.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/nlp/ner.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/octostar/__init__.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/octostar/client.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/octostar/context.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/octostar/permissions.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/ontology/__init__.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/ontology/inheritance.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/ontology/relationships.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/ontology/validation.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/style/__init__.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/style/common.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/threading/__init__.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/threading/async_task_manager.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/threading/session_callback_manager.py +0 -0
- {streamlit_octostar_utils-0.6.3.dev1 → streamlit_octostar_utils-0.6.4}/streamlit_octostar_utils/threading/session_state_hot_swapper.py +0 -0
|
@@ -352,6 +352,7 @@ class CeleryQueueConfig:
|
|
|
352
352
|
max_tasks_per_child=None,
|
|
353
353
|
max_memory_per_child=None,
|
|
354
354
|
warn_memory_per_child=None,
|
|
355
|
+
worker_env=None,
|
|
355
356
|
**options,
|
|
356
357
|
):
|
|
357
358
|
self.n_workers = n_workers
|
|
@@ -359,6 +360,7 @@ class CeleryQueueConfig:
|
|
|
359
360
|
self.max_tasks_per_child = max_tasks_per_child
|
|
360
361
|
self.max_memory_per_child = max_memory_per_child # KiB — hard limit, worker restarted
|
|
361
362
|
self.warn_memory_per_child = warn_memory_per_child # KiB — soft limit, logs WARNING
|
|
363
|
+
self.worker_env = dict(worker_env) if worker_env else {}
|
|
362
364
|
self.options = options
|
|
363
365
|
|
|
364
366
|
|
|
@@ -800,6 +802,10 @@ class CeleryExecutor(object):
|
|
|
800
802
|
f"PYTHONPATH={os.getcwd()}",
|
|
801
803
|
f"CELERY_WORKER_QUEUES={queue}",
|
|
802
804
|
f"CELERY_WORKER_NAME={worker_name}",
|
|
805
|
+
]
|
|
806
|
+
for env_key, env_val in queue_config.worker_env.items():
|
|
807
|
+
command.append(f"{env_key}={env_val}")
|
|
808
|
+
command.extend([
|
|
803
809
|
"celery",
|
|
804
810
|
"--app",
|
|
805
811
|
f"{self.filename}.{self.name}",
|
|
@@ -808,7 +814,7 @@ class CeleryExecutor(object):
|
|
|
808
814
|
"--concurrency=1",
|
|
809
815
|
f"--loglevel={self.loglevel}",
|
|
810
816
|
f"-n {worker_name}",
|
|
811
|
-
]
|
|
817
|
+
])
|
|
812
818
|
if queue_config.max_tasks_per_child is not None:
|
|
813
819
|
command.append(f"--max-tasks-per-child={queue_config.max_tasks_per_child}")
|
|
814
820
|
if queue_config.max_memory_per_child is not None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|