funboost 43.9__py3-none-any.whl → 44.0__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 CHANGED
@@ -13,7 +13,7 @@ set_frame_config这个模块的 use_config_form_funboost_config_module() 是核
13
13
  这段注释说明和使用的用户无关,只和框架开发人员有关.
14
14
  '''
15
15
 
16
- __version__ = "43.9"
16
+ __version__ = "44.0"
17
17
 
18
18
  from funboost.set_frame_config import show_frame_config
19
19
 
@@ -383,25 +383,26 @@ class AbstractConsumer(LoggerLevelSetterMixin, metaclass=abc.ABCMeta, ):
383
383
  """
384
384
  raise NotImplementedError
385
385
 
386
- def __auto_fill_msg(self, msg: dict):
386
+ def _auto_fill_msg(self, msg: dict):
387
387
  """填充消息,消息没有使用funboost来发送,并且没有extra相关字段时候"""
388
388
  """ 一般消息至少包含这样
389
- {
390
- "a": 42,
391
- "b": 84,
392
- "extra": {
393
- "task_id": "queue_2_result:9b79a372-f765-4a33-8639-9d15d7a95f61",
394
- "publish_time": 1701687443.3596,
395
- "publish_time_format": "2023-12-04 18:57:23"
396
- }
397
- }
389
+ {
390
+ "a": 42,
391
+ "b": 84,
392
+ "extra": {
393
+ "task_id": "queue_2_result:9b79a372-f765-4a33-8639-9d15d7a95f61",
394
+ "publish_time": 1701687443.3596,
395
+ "publish_time_format": "2023-12-04 18:57:23"
396
+ }
397
+ }
398
398
  """
399
+
399
400
  """
400
401
  extra_params = {'task_id': task_id, 'publish_time': round(time.time(), 4),
401
402
  'publish_time_format': time.strftime('%Y-%m-%d %H:%M:%S')}
402
403
  """
403
404
  if 'extra' not in msg:
404
- msg['extra'] = {}
405
+ msg['extra'] = {'is_auto_fill_extra': True}
405
406
  extra = msg['extra']
406
407
  if 'task_id' not in extra:
407
408
  extra['task_id'] = generate_task_id(self._queue_name)
@@ -425,7 +426,7 @@ class AbstractConsumer(LoggerLevelSetterMixin, metaclass=abc.ABCMeta, ):
425
426
  self._requeue(kw)
426
427
  time.sleep(self.time_interval_for_check_do_not_run_time)
427
428
  return
428
- self.__auto_fill_msg(kw['body'])
429
+ self._auto_fill_msg(kw['body'])
429
430
  function_only_params = delete_keys_and_return_new_dict(kw['body'], )
430
431
  if self._get_priority_conf(kw, 'do_task_filtering') and self._redis_filter.check_value_exists(
431
432
  function_only_params): # 对函数的参数进行检查,过滤已经执行过并且成功的任务。
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: funboost
3
- Version: 43.9
3
+ Version: 44.0
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
@@ -1,4 +1,4 @@
1
- funboost/__init__.py,sha256=H-RYbw9IE6_YoCnuABJoytt_IAGKkpt-IFzEY8GtSHo,3832
1
+ funboost/__init__.py,sha256=SK4K9FAxT3Q_xEIOXXevlrkL4LA13tnT9sMntnrAK8E,3832
2
2
  funboost/__init__old.py,sha256=07A1MLsxLtuRQQOIfDyphddOwNBrGe34enoHWAnjV14,20379
3
3
  funboost/__main__.py,sha256=-6Nogi666Y0LN8fVm3JmHGTOk8xEGWvotW_GDbSaZME,1065
4
4
  funboost/constant.py,sha256=Yxt3WJt9D8ybcrgiojOy0qjnq5mffwTnTJplerGL0Oo,7188
@@ -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=rUxBGuvadSBxNRw2uoZpC9plMUxwQBWgjQqAf4Wo1mU,75738
36
+ funboost/consumers/base_consumer.py,sha256=j5ex_mLj4JzbAFIEc7ftU5Cux8thBRcgJGPNWKHVIio,75829
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
@@ -264,9 +264,9 @@ funboost/utils/pysnooper_ydf/utils.py,sha256=evSmGi_Oul7vSP47AJ0DLjFwoCYCfunJZ1m
264
264
  funboost/utils/pysnooper_ydf/variables.py,sha256=QejRDESBA06KG9OH4sBT4J1M55eaU29EIHg8K_igaXo,3693
265
265
  funboost/utils/times/__init__.py,sha256=Y4bQD3SIA_E7W2YvHq2Qdi0dGM4H2DxyFNdDOuFOq1w,2417
266
266
  funboost/utils/times/version.py,sha256=11XfnZVVzOgIhXXdeN_mYfdXThfrsbQHpA0wCjz-hpg,17
267
- funboost-43.9.dist-info/LICENSE,sha256=9EPP2ktG_lAPB8PjmWV-c9BiaJHc_FP6pPLcUrUwx0E,11562
268
- funboost-43.9.dist-info/METADATA,sha256=7fO2oWHqPhj3WOk1X00OvefH5GGGx8Rsx2n7wYPEzWI,30408
269
- funboost-43.9.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
270
- funboost-43.9.dist-info/entry_points.txt,sha256=yMSSAGRzRAAhGyNNQHw24MooKlDZsaJ499_D6fPl58A,96
271
- funboost-43.9.dist-info/top_level.txt,sha256=K8WuKnS6MRcEWxP1NvbmCeujJq6TEfbsB150YROlRw0,9
272
- funboost-43.9.dist-info/RECORD,,
267
+ funboost-44.0.dist-info/LICENSE,sha256=9EPP2ktG_lAPB8PjmWV-c9BiaJHc_FP6pPLcUrUwx0E,11562
268
+ funboost-44.0.dist-info/METADATA,sha256=_Q4E_KUn0vRz59SEJkmEm1nwk2AKj0jAp6c2hdi4PTY,30408
269
+ funboost-44.0.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
270
+ funboost-44.0.dist-info/entry_points.txt,sha256=yMSSAGRzRAAhGyNNQHw24MooKlDZsaJ499_D6fPl58A,96
271
+ funboost-44.0.dist-info/top_level.txt,sha256=K8WuKnS6MRcEWxP1NvbmCeujJq6TEfbsB150YROlRw0,9
272
+ funboost-44.0.dist-info/RECORD,,