streamlit-octostar-utils 0.1.7a7__tar.gz → 0.1.7a8__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 (43) hide show
  1. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/PKG-INFO +1 -1
  2. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/pyproject.toml +1 -1
  3. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/celery.py +14 -3
  4. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/LICENSE +0 -0
  5. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/README.md +0 -0
  6. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/__init__.py +0 -0
  7. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/__init__.py +0 -0
  8. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/fastapi.py +0 -0
  9. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/nifi.py +0 -0
  10. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/parser/__init__.py +0 -0
  11. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/parser/combine_fields.py +0 -0
  12. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/parser/entities_parser.py +0 -0
  13. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/parser/generics.py +0 -0
  14. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/parser/info.py +0 -0
  15. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/parser/linkchart_functions.py +0 -0
  16. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/parser/matches.py +0 -0
  17. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/parser/parameters.py +0 -0
  18. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/parser/rules.py +0 -0
  19. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/api_crafter/parser/signals.py +0 -0
  20. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/core/__init__.py +0 -0
  21. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/core/dict.py +0 -0
  22. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/core/filetypes.py +0 -0
  23. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/core/threading/__init__.py +0 -0
  24. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/core/threading/key_queue.py +0 -0
  25. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/core/timestamp.py +0 -0
  26. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/hello.py +0 -0
  27. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/nlp/__init__.py +0 -0
  28. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/nlp/language.py +0 -0
  29. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/nlp/ner.py +0 -0
  30. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/octostar/__init__.py +0 -0
  31. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/octostar/client.py +0 -0
  32. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/octostar/context.py +0 -0
  33. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/octostar/permissions.py +0 -0
  34. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/ontology/__init__.py +0 -0
  35. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/ontology/expand_entities.py +0 -0
  36. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/ontology/inheritance.py +0 -0
  37. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/ontology/validation.py +0 -0
  38. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/style/__init__.py +0 -0
  39. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/style/common.py +0 -0
  40. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/threading/__init__.py +0 -0
  41. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/threading/async_task_manager.py +0 -0
  42. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/threading/session_callback_manager.py +0 -0
  43. {streamlit_octostar_utils-0.1.7a7 → streamlit_octostar_utils-0.1.7a8}/streamlit_octostar_utils/threading/session_state_hot_swapper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: streamlit-octostar-utils
3
- Version: 0.1.7a7
3
+ Version: 0.1.7a8
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Octostar
@@ -5,7 +5,7 @@ include = '\.pyi?$'
5
5
 
6
6
  [tool.poetry]
7
7
  name = "streamlit-octostar-utils"
8
- version = "0.1.7a7"
8
+ version = "0.1.7a8"
9
9
  description = ""
10
10
  license = "MIT"
11
11
  authors = ["Octostar"]
@@ -492,9 +492,20 @@ class CeleryExecutor(object):
492
492
  kwargs,
493
493
  task_id,
494
494
  )
495
- await asyncio.get_running_loop().run_in_executor(
496
- self.set_thread_pool, _send_task, task_fn, task_id, options
497
- )
495
+
496
+ try:
497
+ await asyncio.get_running_loop().run_in_executor(
498
+ self.set_thread_pool, _send_task, task_fn, task_id, options
499
+ )
500
+
501
+ except CeleryExecutor.QueueFullException as e:
502
+ if os.path.isfile(os.path.join(self.in_folder, task_id)):
503
+ with RedisFileLock(self.redis_client, os.path.join(self.in_folder, task_id)):
504
+ os.remove(os.path.join(self.in_folder, task_id))
505
+
506
+ logger.warning(f"Queue full exception: {str(e)}")
507
+ return None
508
+
498
509
  except asyncio.CancelledError:
499
510
  logger.info(f"Cancelling task {task_id} due to disconnect!")
500
511
  await self.terminate_task(task_id)