funboost 40.1__py3-none-any.whl → 40.2__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/core/booster.py CHANGED
@@ -58,7 +58,7 @@ class Booster:
58
58
  elif isinstance(queue_name, BoosterParams):
59
59
  boost_params = queue_name
60
60
  if isinstance(queue_name, str) or kwargs:
61
- flogger.warning(f''' funboost 40.0版本以后: {BoostDecoParamsIsOldVersion.new_version_change_hint}''')
61
+ flogger.warning(f'''你的 {queue_name} 队列, funboost 40.0版本以后: {BoostDecoParamsIsOldVersion.new_version_change_hint}''')
62
62
  boost_params_merge = boost_params.copy()
63
63
  boost_params_merge.update_from_dict(kwargs)
64
64
  self.boost_params = boost_params_merge
@@ -196,7 +196,7 @@ class BoostersManager:
196
196
  @classmethod
197
197
  def get_or_create_booster_by_queue_name(cls, queue_name, ) -> Booster:
198
198
  """
199
- 当前进程获得booster对象。如果是多进程,会在新的进程内部创建一个新的booster对象,因为多进程操作有些中间件的同一个conn不行.
199
+ 当前进程获得booster对象,如果是多进程,会在新的进程内部创建一个新的booster对象,因为多进程操作有些中间件的同一个conn不行.
200
200
  :param queue_name: 就是 @boost的入参。
201
201
  :return:
202
202
  """
@@ -12,7 +12,7 @@ class ExceptionForPushToDlxqueue(Exception):
12
12
 
13
13
  class BoostDecoParamsIsOldVersion(Exception):
14
14
  new_version_change_hint = """
15
- 你的@boost入参是老的方式.
15
+ 你的@boost入参是老的方式,建议用新的入参方式,老入参方式不再支持函数入参代码自动补全了。
16
16
 
17
17
  老版本的@boost装饰器方式是:
18
18
  @boost('queue_name_xx',qps=3)
@@ -45,7 +45,7 @@ class BaseJsonAbleModel(BaseModel):
45
45
  for k, v in model_dict.items():
46
46
  if isinstance(v, typing.Callable):
47
47
  model_dict_copy[k] = str(v)
48
- elif k in ['specify_concurrent_pool', 'specify_async_loop']:
48
+ elif k in ['specify_concurrent_pool', 'specify_async_loop'] and v is not None:
49
49
  model_dict_copy[k] = str(v)
50
50
  else:
51
51
  model_dict_copy[k] = v
@@ -101,59 +101,3 @@ class FunboostCommonConfig(DataClassBase):
101
101
  TIMEZONE = 'Asia/Shanghai'
102
102
 
103
103
 
104
- # class BoostDecoratorDefaultParams(DataClassBase):
105
- # """
106
- # @boost装饰器的默认全局配置
107
- #
108
- # BoostDecoratorDefaultParams是@boost装饰器默认的全局入参。如果boost没有亲自指定某个入参,就自动使用这里的配置。
109
- # 这里的值不用配置,在boost装饰器中可以为每个消费者指定不同的入参,除非你嫌弃每个 boost 装饰器相同入参太多了,那么可以设置这里的全局默认值。
110
- #
111
- # 例如用户不想每次在boost装饰器指定broker_kind为哪种消息队列,可以设置broker_kind为用户自己希望的默认消息队列类型
112
- #
113
- # boost入参可以ide跳转到boost函数的docstring查看
114
- # boost入参也可以看文档3.3章节 https://funboost.readthedocs.io/zh/latest/articles/c3.html
115
- #
116
- # BoostDecoratorDefaultParams这个类的属性名字和boost装饰器的入参名字一模一样,只有 queue_name 必须每个装饰器是不同的名字,不能作为全局的。
117
- # 所以boost装饰器只有一个是必传参数。
118
- # """
119
- #
120
- # broker_kind: int = BrokerEnum.PERSISTQUEUE # 中间件选型见3.1章节 https://funboost.readthedocs.io/zh/latest/articles/c3.html
121
- #
122
- # concurrent_mode = ConcurrentModeEnum.THREADING
123
- # concurrent_num = 50
124
- # specify_concurrent_pool = None
125
- # specify_async_loop = None
126
- # qps: float = 0
127
- # is_using_distributed_frequency_control = False
128
- # is_send_consumer_hearbeat_to_redis = False
129
- #
130
- # max_retry_times = 3
131
- # is_push_to_dlx_queue_when_retry_max_times = False
132
- #
133
- # consumin_function_decorator = None
134
- # function_timeout = 0
135
- #
136
- # log_level = 10
137
- # logger_prefix = ''
138
- # create_logger_file = True
139
- # log_filename = None
140
- # is_show_message_get_from_broker = False
141
- # is_print_detail_exception = True
142
- #
143
- # msg_expire_senconds = 0
144
- #
145
- # do_task_filtering = False
146
- # task_filtering_expire_seconds = 0
147
- #
148
- # # function_result_status_persistance_conf = FunctionResultStatusPersistanceConfig(False, False, 7 * 24 * 3600)
149
- # user_custom_record_process_info_func = None
150
- #
151
- # is_using_rpc_mode = False
152
- # is_support_remote_kill_task = False
153
- #
154
- # is_do_not_run_by_specify_time_effect = False
155
- # do_not_run_by_specify_time = ('10:00:00', '22:00:00')
156
- #
157
- # schedule_tasks_on_main_thread = False
158
- #
159
- # broker_exclusive_config = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: funboost
3
- Version: 40.1
3
+ Version: 40.2
4
4
  Summary: pip install funboost,python全功能分布式函数调度框架,。支持python所有类型的并发模式和一切知名消息队列中间件,支持celery框架整体作为funboost中间件,python函数加速器,框架包罗万象,一统编程思维,兼容50% python业务场景,适用范围广。只需要一行代码即可分布式执行python一切函数,99%用过funboost的pythoner 感受是 方便 快速 强大,相见恨晚
5
5
  Home-page: https://github.com/ydf0509/funboost
6
6
  Author: bfzs
@@ -2,7 +2,7 @@ funboost/__init__.py,sha256=KS7VQjp4I-xmc0cHQtBl4pDypRu3jyjs9MOZhR68jVs,3737
2
2
  funboost/__init__old.py,sha256=cSzw-ZQqtAAp5_-7eONXQT5fwz_JbZlRjDQPASDLUHk,20378
3
3
  funboost/__main__.py,sha256=-6Nogi666Y0LN8fVm3JmHGTOk8xEGWvotW_GDbSaZME,1065
4
4
  funboost/constant.py,sha256=VGwOZGP7U9Hq5--gPGT7mZFQ-a171gcxFYupJOMw7Y4,7162
5
- funboost/funboost_config_deafult.py,sha256=qRy7cXeh_xJpBD3wgoyh9Dq5-1dyQoobNZLwwiJKLH8,7718
5
+ funboost/funboost_config_deafult.py,sha256=Ux1mWZeJdiJSlza_bubHWcaB9sLeZSp-4RQulWxVp3U,5295
6
6
  funboost/set_frame_config.py,sha256=8gdxrpSXa1I0jIPPffK_2uplP_LiaDuvt2NVeDFUhak,13950
7
7
  funboost/assist/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  funboost/assist/celery_helper.py,sha256=xp_t6DnQ57H40ovYGdL55Q5B1UojEy0WfMHZrvj7hDQ,4882
@@ -79,10 +79,10 @@ funboost/contrib/queue2queue.py,sha256=YlYY6AioaSQ_DlhsktF1gIzYAEpa6nWiILOA0yrQv
79
79
  funboost/contrib/redis_consume_latest_msg_broker.py,sha256=ESortBZ2qu_4PBCa3e3FeL2k_PClZNb74_v55HV-BOg,1902
80
80
  funboost/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
81
81
  funboost/core/active_cousumer_info_getter.py,sha256=09fEc-BTEIRfDDfHmOvKnMjLjtOyp4edLsUlAXUR_Qs,4966
82
- funboost/core/booster.py,sha256=-xiR_qU0q2P9srswfKZJU83xsFZ6pYUDClbLPmwPzEI,11925
83
- funboost/core/exceptions.py,sha256=5O0i8YcUEjF3q7-orctGFlfw13hK08-56hgZkKmxabw,1116
82
+ funboost/core/booster.py,sha256=o0o9wQ7dUpZeMty6yPZ_Y4zY025oLONCfAk3BEGIGQE,11954
83
+ funboost/core/exceptions.py,sha256=A0O-5ly1ZGcoS5Ih92n-iJyI6jMWFXu7Q9wmdvvCoY8,1207
84
84
  funboost/core/fabric_deploy_helper.py,sha256=KPjifNy1G1tDOT2eaR0X8hegot0HUk5vF-P1DnhxME4,8941
85
- funboost/core/func_params_model.py,sha256=QBhc67C-QoVBKosLWQ9Htc3TbpebZgGHxdDeryXEKRQ,15610
85
+ funboost/core/func_params_model.py,sha256=fieYsuIOB8D6rxUumkGhuySK89Au5m4LVJQLllH8o1U,15628
86
86
  funboost/core/func_params_model2.py,sha256=Dqk8hvsHpvZjGG1QL6f9MSxulbI_kAL_FuFvgPwhzVw,20287
87
87
  funboost/core/function_result_status_config.py,sha256=PyjqAQOiwsLt28sRtH-eYRjiI3edPFO4Nde0ILFRReE,1764
88
88
  funboost/core/function_result_status_saver.py,sha256=Vv_Oq3a37K_Q-LbtMR-nWzzRiIPaOUvheaQoG5JvmbQ,8921
@@ -230,9 +230,9 @@ funboost/utils/pysnooper_ydf/utils.py,sha256=evSmGi_Oul7vSP47AJ0DLjFwoCYCfunJZ1m
230
230
  funboost/utils/pysnooper_ydf/variables.py,sha256=QejRDESBA06KG9OH4sBT4J1M55eaU29EIHg8K_igaXo,3693
231
231
  funboost/utils/times/__init__.py,sha256=z-KQTxXapfu2ScJxISGe7QGffASuyJYL6JGsLXxD6O0,2332
232
232
  funboost/utils/times/version.py,sha256=JiZLGTB-HYyBOV4xS0rnx2K2OqVMTebUj30sZRbrleE,16
233
- funboost-40.1.dist-info/LICENSE,sha256=9EPP2ktG_lAPB8PjmWV-c9BiaJHc_FP6pPLcUrUwx0E,11562
234
- funboost-40.1.dist-info/METADATA,sha256=_Bu4g52ZpQNBuFYongOdOaPPskdeTHV7CarJBE5-pus,29593
235
- funboost-40.1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
236
- funboost-40.1.dist-info/entry_points.txt,sha256=yMSSAGRzRAAhGyNNQHw24MooKlDZsaJ499_D6fPl58A,96
237
- funboost-40.1.dist-info/top_level.txt,sha256=K8WuKnS6MRcEWxP1NvbmCeujJq6TEfbsB150YROlRw0,9
238
- funboost-40.1.dist-info/RECORD,,
233
+ funboost-40.2.dist-info/LICENSE,sha256=9EPP2ktG_lAPB8PjmWV-c9BiaJHc_FP6pPLcUrUwx0E,11562
234
+ funboost-40.2.dist-info/METADATA,sha256=qV1ae5QGiU3JivbiRdL66kZxpfdciszOK_FCOxLgfRU,29593
235
+ funboost-40.2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
236
+ funboost-40.2.dist-info/entry_points.txt,sha256=yMSSAGRzRAAhGyNNQHw24MooKlDZsaJ499_D6fPl58A,96
237
+ funboost-40.2.dist-info/top_level.txt,sha256=K8WuKnS6MRcEWxP1NvbmCeujJq6TEfbsB150YROlRw0,9
238
+ funboost-40.2.dist-info/RECORD,,