funboost 45.1__py3-none-any.whl → 45.3__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.
Potentially problematic release.
This version of funboost might be problematic. Click here for more details.
- funboost/__init__.py +1 -1
- funboost/consumers/base_consumer.py +5 -0
- funboost/core/current_task.py +1 -1
- funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/StoppableThread.cpython-37.pyc +0 -0
- funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/dafunc.cpython-37.pyc +0 -0
- {funboost-45.1.dist-info → funboost-45.3.dist-info}/METADATA +2 -2
- {funboost-45.1.dist-info → funboost-45.3.dist-info}/RECORD +11 -12
- funboost/core/funboost_current_task_context_thread.py +0 -12
- {funboost-45.1.dist-info → funboost-45.3.dist-info}/LICENSE +0 -0
- {funboost-45.1.dist-info → funboost-45.3.dist-info}/WHEEL +0 -0
- {funboost-45.1.dist-info → funboost-45.3.dist-info}/entry_points.txt +0 -0
- {funboost-45.1.dist-info → funboost-45.3.dist-info}/top_level.txt +0 -0
funboost/__init__.py
CHANGED
|
@@ -675,6 +675,8 @@ class AbstractConsumer(LoggerLevelSetterMixin, metaclass=abc.ABCMeta, ):
|
|
|
675
675
|
# self.logger.critical(msg=f'{log_msg} \n', exc_info=True)
|
|
676
676
|
# self.error_file_logger.critical(msg=f'{log_msg} \n', exc_info=True)
|
|
677
677
|
self.logger.critical(msg=log_msg, exc_info=True)
|
|
678
|
+
fct = funboost_current_task()
|
|
679
|
+
fct.set_fct_context(None)
|
|
678
680
|
|
|
679
681
|
# noinspection PyProtectedMember
|
|
680
682
|
def _run_consuming_function_with_confirm_and_retry(self, kw: dict, current_retry_times,
|
|
@@ -847,6 +849,9 @@ class AbstractConsumer(LoggerLevelSetterMixin, metaclass=abc.ABCMeta, ):
|
|
|
847
849
|
# self.logger.critical(msg=f'{log_msg} \n', exc_info=True)
|
|
848
850
|
# self.error_file_logger.critical(msg=f'{log_msg} \n', exc_info=True)
|
|
849
851
|
self.logger.critical(msg=log_msg, exc_info=True)
|
|
852
|
+
fct = funboost_current_task()
|
|
853
|
+
fct.set_fct_context(None)
|
|
854
|
+
|
|
850
855
|
|
|
851
856
|
# noinspection PyProtectedMember
|
|
852
857
|
async def _async_run_consuming_function_with_confirm_and_retry(self, kw: dict, current_retry_times,
|
funboost/core/current_task.py
CHANGED
|
@@ -150,7 +150,7 @@ def is_asyncio_environment():
|
|
|
150
150
|
|
|
151
151
|
def funboost_current_task():
|
|
152
152
|
if is_asyncio_environment():
|
|
153
|
-
if thread_current_task.get_fct_context().asyncio_use_thread_concurrent_mode is True:
|
|
153
|
+
if hasattr(thread_current_task._fct_local_data,'fct_context') and thread_current_task.get_fct_context().asyncio_use_thread_concurrent_mode is True:
|
|
154
154
|
# 如果用户使用的是默认的ConcurrentModeEnum.THREADING并发模式来运行async def 函数,那么也使用线程获取上下文
|
|
155
155
|
return thread_current_task
|
|
156
156
|
else:
|
|
Binary file
|
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/dafunc.cpython-37.pyc
CHANGED
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: funboost
|
|
3
|
-
Version: 45.
|
|
3
|
+
Version: 45.3
|
|
4
4
|
Summary: pip install funboost,python全功能分布式函数调度框架,。支持python所有类型的并发模式和一切知名消息队列中间件,支持如 celery dramatiq等框架整体作为funboost中间件,python函数加速器,框架包罗万象,用户能想到的控制功能全都有。一统编程思维,兼容50% python业务场景,适用范围广。只需要一行代码即可分布式执行python一切函数,99%用过funboost的pythoner 感受是 简易 方便 强劲 强大,相见恨晚
|
|
5
5
|
Home-page: https://github.com/ydf0509/funboost
|
|
6
6
|
Author: bfzs
|
|
@@ -27,7 +27,7 @@ Classifier: Topic :: Software Development :: Libraries
|
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
28
|
License-File: LICENSE
|
|
29
29
|
Requires-Dist: nb-log (>=12.6)
|
|
30
|
-
Requires-Dist: nb-libs (>=1.
|
|
30
|
+
Requires-Dist: nb-libs (>=1.6)
|
|
31
31
|
Requires-Dist: nb-time (>=1.8)
|
|
32
32
|
Requires-Dist: pymongo (==4.3.3)
|
|
33
33
|
Requires-Dist: AMQPStorm (==2.10.6)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
funboost/__init__.py,sha256=
|
|
1
|
+
funboost/__init__.py,sha256=pmnCpEqfGuA9KYCVdbiJ44Cpr7ZtO8vimcW3r5C6Ar4,3957
|
|
2
2
|
funboost/__init__old.py,sha256=9Kv3cPLnPkbzMRnuJFVkPsuDdx1CdcSIuITkpdncZSc,20382
|
|
3
3
|
funboost/__main__.py,sha256=-6Nogi666Y0LN8fVm3JmHGTOk8xEGWvotW_GDbSaZME,1065
|
|
4
4
|
funboost/constant.py,sha256=STzRDZbuCC5FFV-uD_0r2beGsD1Zni4kregzR11z3Ok,8148
|
|
@@ -33,7 +33,7 @@ funboost/concurrent_pool/backup/async_pool_executor0223.py,sha256=RVUZiylUvpTm6U
|
|
|
33
33
|
funboost/concurrent_pool/backup/async_pool_executor_back.py,sha256=KL6zEQaa1KkZOlAO85mCC1gwLm-YC5Ghn21IUom0UKM,9598
|
|
34
34
|
funboost/concurrent_pool/backup/async_pool_executor_janus.py,sha256=OHMWJ9l3EYTpPpcrPrGGKd4K0tmQ2PN8HiX0Dta0EOo,5728
|
|
35
35
|
funboost/consumers/__init__.py,sha256=ZXY_6Kut1VYNQiF5aWEgIWobsW1ht9YUP0TdRZRWFqI,126
|
|
36
|
-
funboost/consumers/base_consumer.py,sha256=
|
|
36
|
+
funboost/consumers/base_consumer.py,sha256=EXauF0PD6lMb9J2S7q0uBDj0FXxmhX-xpMMyTUyfu9I,80091
|
|
37
37
|
funboost/consumers/celery_consumer.py,sha256=9gtz7nlZkmv3ErmaseT0_Q__ltSPx-fOcwi-TMPoaLA,9220
|
|
38
38
|
funboost/consumers/confirm_mixin.py,sha256=eY6fNwx51Hn4bQSYRjyTRwOqfCGsikVnd2Ga_Ep31N4,6062
|
|
39
39
|
funboost/consumers/dramatiq_consumer.py,sha256=ozmeAfeF0U-YNYHK4suQB0N264h5AZdfMH0O45Mh-8A,2229
|
|
@@ -84,11 +84,10 @@ funboost/contrib/save_result_status_to_sqldb.py,sha256=AxvD7nHs4sjr9U0kwEZzyPKrs
|
|
|
84
84
|
funboost/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
85
85
|
funboost/core/active_cousumer_info_getter.py,sha256=09fEc-BTEIRfDDfHmOvKnMjLjtOyp4edLsUlAXUR_Qs,4966
|
|
86
86
|
funboost/core/booster.py,sha256=vztzE7KqfXsg_LODmW5cX1M8as6n2tPdqEjkOLa7SYM,18276
|
|
87
|
-
funboost/core/current_task.py,sha256=
|
|
87
|
+
funboost/core/current_task.py,sha256=cJw5ZDtsTJB_5LHN18F1XUFaT-YnAX60AOAi_CkvQoE,5772
|
|
88
88
|
funboost/core/exceptions.py,sha256=pLF7BkRJAfDiWp2_xGZqencmwdPiSQI1NENbImExknY,1311
|
|
89
89
|
funboost/core/fabric_deploy_helper.py,sha256=foieeqlNySuU9axJzNF6TavPjIUSYBx9UO3syVKUiyY,9999
|
|
90
90
|
funboost/core/funboost_config_getter.py,sha256=TDccp5pQamkoJXkwyPwGsQGDJY8ej8ZT8L8RESSAD2w,382
|
|
91
|
-
funboost/core/funboost_current_task_context_thread.py,sha256=RRhqmRl943jBccgTrsfra4lS20X0zB2TtLAUaZn_A18,441
|
|
92
91
|
funboost/core/funboost_time.py,sha256=IbB4dFCpg3oGUe90ssAJ_x0eDPtAVfvsUr4esdoKaOk,1777
|
|
93
92
|
funboost/core/func_params_model.py,sha256=CMePcxL8vNSWHAEVvQImJF5h7Qv-gIvieh6ejPYgjEU,20593
|
|
94
93
|
funboost/core/function_result_status_config.py,sha256=PyjqAQOiwsLt28sRtH-eYRjiI3edPFO4Nde0ILFRReE,1764
|
|
@@ -251,13 +250,13 @@ funboost/utils/dependency_packages_in_pythonpath/func_timeout/exceptions.py,sha2
|
|
|
251
250
|
funboost/utils/dependency_packages_in_pythonpath/func_timeout/py2_raise.py,sha256=9tpZLQ3-zIgU_ixazydwZmw8rFg7ybjI9alNYfSvwRk,169
|
|
252
251
|
funboost/utils/dependency_packages_in_pythonpath/func_timeout/py3_raise.py,sha256=Odvg1FtXTEC--Ru1EIfsHASamBpOm9hdXY7OnlEUObA,280
|
|
253
252
|
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/StoppableThread.cpython-311.pyc,sha256=oFKhlv2kniXOCQ2KgP9B_I_RHt5hilYVdYlzWbPaypY,6484
|
|
254
|
-
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/StoppableThread.cpython-37.pyc,sha256=
|
|
253
|
+
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/StoppableThread.cpython-37.pyc,sha256=J2fgGZsSYL8VKtKcRsgRhkV4hGHcHnTtBWdBCYmGBCc,5121
|
|
255
254
|
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/StoppableThread.cpython-39.pyc,sha256=FH5T5kZIWSS05PM-G7JhmItm_Y7yXCnFMPMIVsf204M,5141
|
|
256
255
|
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/__init__.cpython-311.pyc,sha256=UBbUeoQg10pza2zo-5ELiOzE_Q-WclM1dafrFDRKZVs,857
|
|
257
256
|
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/__init__.cpython-37.pyc,sha256=ACdP5kS3R-5Bt2Qk-sq6RHF3LaOyywwVyM9R7L8m1-Q,763
|
|
258
257
|
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/__init__.cpython-39.pyc,sha256=5J3PkkFxVDKw4aFL59LwtJC5SDtteQT9ibIBR_1DkF8,767
|
|
259
258
|
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/dafunc.cpython-311.pyc,sha256=lm1W6uTCo09YyK_P5WNpBr1dBMMBwl8Pt6ItwMyBNGA,11447
|
|
260
|
-
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/dafunc.cpython-37.pyc,sha256=
|
|
259
|
+
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/dafunc.cpython-37.pyc,sha256=AB8oSLB3lCqKJAGlz4rSTE4cCGU5bhcKHbhr1OV2lPw,8293
|
|
261
260
|
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/dafunc.cpython-39.pyc,sha256=3szcbtA-GeP5VmaAgS9fG_nt3QppLPnuvaJ2i_raQqI,8086
|
|
262
261
|
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/exceptions.cpython-311.pyc,sha256=9v_YQPA5cUlVs-3UHbVwfiIE8UBzPD1HyWzApfBSR7Y,4592
|
|
263
262
|
funboost/utils/dependency_packages_in_pythonpath/func_timeout/__pycache__/exceptions.cpython-37.pyc,sha256=UXQJRMqqUOpudiCLxFYM2RWF8JXerjUttXl6Fiw55OE,3708
|
|
@@ -272,9 +271,9 @@ funboost/utils/pysnooper_ydf/utils.py,sha256=evSmGi_Oul7vSP47AJ0DLjFwoCYCfunJZ1m
|
|
|
272
271
|
funboost/utils/pysnooper_ydf/variables.py,sha256=QejRDESBA06KG9OH4sBT4J1M55eaU29EIHg8K_igaXo,3693
|
|
273
272
|
funboost/utils/times/__init__.py,sha256=Y4bQD3SIA_E7W2YvHq2Qdi0dGM4H2DxyFNdDOuFOq1w,2417
|
|
274
273
|
funboost/utils/times/version.py,sha256=11XfnZVVzOgIhXXdeN_mYfdXThfrsbQHpA0wCjz-hpg,17
|
|
275
|
-
funboost-45.
|
|
276
|
-
funboost-45.
|
|
277
|
-
funboost-45.
|
|
278
|
-
funboost-45.
|
|
279
|
-
funboost-45.
|
|
280
|
-
funboost-45.
|
|
274
|
+
funboost-45.3.dist-info/LICENSE,sha256=9EPP2ktG_lAPB8PjmWV-c9BiaJHc_FP6pPLcUrUwx0E,11562
|
|
275
|
+
funboost-45.3.dist-info/METADATA,sha256=j8GSigEDeKAcr4uZDTM-AGVW8fe6_9r5Zwd9AK8RxdM,31707
|
|
276
|
+
funboost-45.3.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
277
|
+
funboost-45.3.dist-info/entry_points.txt,sha256=BQMqRALuw-QT9x2d7puWaUHriXfy3wIzvfzF61AnSSI,97
|
|
278
|
+
funboost-45.3.dist-info/top_level.txt,sha256=K8WuKnS6MRcEWxP1NvbmCeujJq6TEfbsB150YROlRw0,9
|
|
279
|
+
funboost-45.3.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# import threading
|
|
2
|
-
#
|
|
3
|
-
# from funboost.core.current_task import thread_current_task
|
|
4
|
-
#
|
|
5
|
-
#
|
|
6
|
-
# class FctThread(threading.Thread):
|
|
7
|
-
# thread_current_task__dict_key = 'thread_current_task__dict'
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
# def run(self):
|
|
11
|
-
# thread_current_task._fct_local_data.__dict__.update(getattr(self,self.thread_current_task__dict_key)) # 把funboost的消费线程上下文需要传递到线程上下文里面来.
|
|
12
|
-
# super().run()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|