streamlit-octostar-utils 0.5.0.dev11__tar.gz → 0.5.0.dev13__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.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/PKG-INFO +1 -1
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/pyproject.toml +1 -1
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/celery.py +10 -2
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/LICENSE +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/README.md +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/__init__.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/__init__.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/contents.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/fastapi.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/nifi.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/parallelism.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/parser/__init__.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/parser/combine_fields.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/parser/entities_parser.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/parser/generics.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/parser/info.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/parser/linkchart_functions.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/parser/matches.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/parser/parameters.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/parser/rules.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/api_crafter/parser/signals.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/core/__init__.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/core/dict.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/core/filetypes.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/core/threading/__init__.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/core/threading/key_queue.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/core/timestamp.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/nlp/__init__.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/nlp/custom_recognizers.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/nlp/language.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/nlp/ner.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/octostar/__init__.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/octostar/client.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/octostar/context.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/octostar/permissions.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/ontology/__init__.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/ontology/inheritance.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/ontology/relationships.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/ontology/validation.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/style/__init__.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/style/common.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/threading/__init__.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/threading/async_task_manager.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/threading/session_callback_manager.py +0 -0
- {streamlit_octostar_utils-0.5.0.dev11 → streamlit_octostar_utils-0.5.0.dev13}/streamlit_octostar_utils/threading/session_state_hot_swapper.py +0 -0
|
@@ -295,8 +295,12 @@ class CeleryExecutor(object):
|
|
|
295
295
|
time_limit = request_timelimit[0] or getattr(task, "time_limit", None) or 0
|
|
296
296
|
extended_ttl = int(time_limit) + int(self.app.conf.result_expires)
|
|
297
297
|
if extended_ttl > int(self.app.conf.result_expires):
|
|
298
|
-
self.redis_client.
|
|
299
|
-
|
|
298
|
+
self.redis_client.eval(
|
|
299
|
+
"for _, k in ipairs(KEYS) do redis.call('expire', k, ARGV[1]) end",
|
|
300
|
+
2,
|
|
301
|
+
f"{CeleryExecutor.CELERY_BROKER_PREFIX}{task_id}",
|
|
302
|
+
f"task:queue:{task_id}",
|
|
303
|
+
extended_ttl,
|
|
300
304
|
)
|
|
301
305
|
|
|
302
306
|
def register_worker_initialization(self):
|
|
@@ -310,6 +314,8 @@ class CeleryExecutor(object):
|
|
|
310
314
|
) if task else None
|
|
311
315
|
if queue:
|
|
312
316
|
self.redis_client.set(f"queue:last_completed:{queue}", str(time.time()))
|
|
317
|
+
if task_id:
|
|
318
|
+
self.redis_client.delete(f"task:queue:{task_id}")
|
|
313
319
|
except Exception:
|
|
314
320
|
pass
|
|
315
321
|
|
|
@@ -826,6 +832,7 @@ class CeleryExecutor(object):
|
|
|
826
832
|
|
|
827
833
|
def _remove_task_data(celery_app, in_folder, out_folder, task_id):
|
|
828
834
|
celery_app.AsyncResult(task_id).forget()
|
|
835
|
+
self.redis_client.delete(f"task:queue:{task_id}")
|
|
829
836
|
if os.path.isfile(os.path.join(in_folder, task_id)):
|
|
830
837
|
with RedisFileLock(self.redis_client, os.path.join(self.in_folder, task_id)):
|
|
831
838
|
os.remove(os.path.join(in_folder, task_id))
|
|
@@ -885,6 +892,7 @@ class CeleryExecutor(object):
|
|
|
885
892
|
|
|
886
893
|
def _remove_task_data(celery_app, in_folder, out_folder, task_id):
|
|
887
894
|
celery_app.AsyncResult(task_id).forget()
|
|
895
|
+
self.redis_client.delete(f"task:queue:{task_id}")
|
|
888
896
|
if os.path.isfile(os.path.join(in_folder, task_id)):
|
|
889
897
|
with RedisFileLock(self.redis_client, os.path.join(self.in_folder, task_id)):
|
|
890
898
|
os.remove(os.path.join(in_folder, task_id))
|
|
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
|