streamlit-octostar-utils 0.1.7a7__py3-none-any.whl → 0.1.7a8__py3-none-any.whl
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/api_crafter/celery.py +14 -3
- {streamlit_octostar_utils-0.1.7a7.dist-info → streamlit_octostar_utils-0.1.7a8.dist-info}/METADATA +1 -1
- {streamlit_octostar_utils-0.1.7a7.dist-info → streamlit_octostar_utils-0.1.7a8.dist-info}/RECORD +5 -5
- {streamlit_octostar_utils-0.1.7a7.dist-info → streamlit_octostar_utils-0.1.7a8.dist-info}/LICENSE +0 -0
- {streamlit_octostar_utils-0.1.7a7.dist-info → streamlit_octostar_utils-0.1.7a8.dist-info}/WHEEL +0 -0
@@ -492,9 +492,20 @@ class CeleryExecutor(object):
|
|
492
492
|
kwargs,
|
493
493
|
task_id,
|
494
494
|
)
|
495
|
-
|
496
|
-
|
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)
|
{streamlit_octostar_utils-0.1.7a7.dist-info → streamlit_octostar_utils-0.1.7a8.dist-info}/RECORD
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
streamlit_octostar_utils/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
2
2
|
streamlit_octostar_utils/api_crafter/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
-
streamlit_octostar_utils/api_crafter/celery.py,sha256=
|
3
|
+
streamlit_octostar_utils/api_crafter/celery.py,sha256=3vJ7gDf_WyGrXquuxHNA9ybw1ljRAB_l3wJDNVUZs_0,30213
|
4
4
|
streamlit_octostar_utils/api_crafter/fastapi.py,sha256=s4WayFitfS2fX_FGtv1s56RmLB9rx7cfwuFTZjzrKoY,14133
|
5
5
|
streamlit_octostar_utils/api_crafter/nifi.py,sha256=fQ5k9eZl2oSQZ2BexZYwKUiO05-FryUi7wnCd_56P9Y,44375
|
6
6
|
streamlit_octostar_utils/api_crafter/parser/__init__.py,sha256=YeYWF6sdQiCFV_RKNW2t9Vs6KJExE2pbXxWTe_DOayY,107
|
@@ -37,7 +37,7 @@ streamlit_octostar_utils/threading/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzp
|
|
37
37
|
streamlit_octostar_utils/threading/async_task_manager.py,sha256=q7N6YZwUvIYMzkSHmsJNheNVCv93c03H6Hyg9uH8pvk,4747
|
38
38
|
streamlit_octostar_utils/threading/session_callback_manager.py,sha256=LvZVP4g6tvKtYmI13f2j1sX_7hm61Groqp5xJine9_k,3973
|
39
39
|
streamlit_octostar_utils/threading/session_state_hot_swapper.py,sha256=6eeCQI6A42hp4DmW2NQw2rbeR-k9N8DhfBKQdN_fbLU,811
|
40
|
-
streamlit_octostar_utils-0.1.
|
41
|
-
streamlit_octostar_utils-0.1.
|
42
|
-
streamlit_octostar_utils-0.1.
|
43
|
-
streamlit_octostar_utils-0.1.
|
40
|
+
streamlit_octostar_utils-0.1.7a8.dist-info/LICENSE,sha256=dkwVPyV03fPHHtERnF6RnvRXcll__tud9gWca1RcgnQ,1073
|
41
|
+
streamlit_octostar_utils-0.1.7a8.dist-info/METADATA,sha256=Qu54yUOzUMNjTN-JEZLeQa59Ibb2UNLZ1j3bj5XPT84,2267
|
42
|
+
streamlit_octostar_utils-0.1.7a8.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
43
|
+
streamlit_octostar_utils-0.1.7a8.dist-info/RECORD,,
|
{streamlit_octostar_utils-0.1.7a7.dist-info → streamlit_octostar_utils-0.1.7a8.dist-info}/LICENSE
RENAMED
File without changes
|
{streamlit_octostar_utils-0.1.7a7.dist-info → streamlit_octostar_utils-0.1.7a8.dist-info}/WHEEL
RENAMED
File without changes
|