tfduck-bsd 0.18.0__py3-none-any.whl → 0.18.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 tfduck-bsd might be problematic. Click here for more details.

tfduck/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__="0.18.0"
1
+ __version__="0.18.2"
tfduck/tga/tga.py CHANGED
@@ -90,6 +90,7 @@ class ThinkDataQuery(BaseTga):
90
90
  icount = 0 # 数据的数量
91
91
  cols = [] # 表头
92
92
  try:
93
+ row = ''
93
94
  # iter_lines iter_content, chunk_size字节, 下面取100M
94
95
  for row in r.iter_lines(chunk_size=1024*1024*100):
95
96
  if not row:
@@ -110,6 +111,7 @@ class ThinkDataQuery(BaseTga):
110
111
  except:
111
112
  pass
112
113
  datas = []
114
+ raise Exception("sql error")
113
115
  break # 表示查询出错,没有消息
114
116
  else:
115
117
  if row.strip() not in [b"", ""]:
@@ -133,7 +135,7 @@ class ThinkDataQuery(BaseTga):
133
135
  icount += len(datas)
134
136
  datas = []
135
137
  except Exception as e:
136
- BMOBJ.clog(ctx, "get data error", str(e))
138
+ BMOBJ.clog(ctx, "get data error", str(e), row)
137
139
  if upcount is not None:
138
140
  if i < upcount: # 看是否达到可以接受的数量,否则重新查询
139
141
  raise e
@@ -166,11 +168,14 @@ class ThinkDataQuery(BaseTga):
166
168
  gol_e = e
167
169
  BMOBJ.remove_file(unique_path)
168
170
  BMOBJ.remove_folder(unique_path)
169
- if str(e).find("Read timed out") != -1 or str(e).find("Connection broken") != -1:
170
- BMOBJ.clog(ctx, f'retry {i}')
171
+ # modify by yx 2024-05-08---加强出错重试---
172
+ # if str(e).find("Read timed out") != -1 or str(e).find("Connection broken") != -1:
173
+ # BMOBJ.clog(ctx, f'retry {i}')
174
+ # continue
175
+ # else:
176
+ # break
177
+ if 1:
171
178
  continue
172
- else:
173
- break
174
179
  if gol_e is not None:
175
180
  raise gol_e
176
181
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tfduck-bsd
3
- Version: 0.18.0
3
+ Version: 0.18.2
4
4
  Summary: A small example package
5
5
  Home-page: UNKNOWN
6
6
  Author: yuanxiao
@@ -1,4 +1,4 @@
1
- tfduck/__init__.py,sha256=xg0NwcLTzmqN-Xa9iGt2_NsDBIOcmZkITwbvTeLIC6U,20
1
+ tfduck/__init__.py,sha256=Qvfhgdp-xdg-AhEeeHgU9GP5fhFlIgqJJahuBFIE6ns,20
2
2
  tfduck/main.py,sha256=zNTC16wkwGJ0QX1-i8vzlGophOxmFuO4SLsF1tkjsbE,14670
3
3
  tfduck/bdp_sdk_py/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tfduck/bdp_sdk_py/example.py,sha256=Xq1_gcSyu0zho_iMmMYfYgMblcgF8a-GwRBWPTw0FuU,2879
@@ -26,16 +26,16 @@ tfduck/tga/base_tga.py,sha256=rg1BHaIKGSwUVbOlWSA3Y1arB8J_caemjTjH9jh8GYM,2184
26
26
  tfduck/tga/predict_sql_ltv.py,sha256=25rpOZdHyMcEU3O8u67oUpLsTiZburEPsvXR38hTUJ0,3589
27
27
  tfduck/tga/predict_sql_retain.py,sha256=Nsl0lSZ_CC8j_GB4jLrJgkoqqDRAAPYwzo7vAOYZ764,19772
28
28
  tfduck/tga/predict_sql_yh.py,sha256=uYeuCZX2btxO-pvjrhlmuG35PquJbLvVtQEuEZHu8Cs,3588
29
- tfduck/tga/tga.py,sha256=p9AcaiPiGrHaOvfJGnpzNaFK8OeDL5NbCU770OaOTWc,15605
29
+ tfduck/tga/tga.py,sha256=7tLxscnpNVQRVWAlsKRz7LpYLHXXK28ZERGczuUuN34,15811
30
30
  tfduck/tga/tga_test.py,sha256=A3n2LdvgQWlkX6E54K6cnsIUeYrgHlzG3QYbA7ZKgHk,2750
31
31
  tfduck/tga/train_sql_ltv.py,sha256=VZqGy0FbwLHkjQClV1IIMd6_E_H6BrIqL5p_WUfTUXc,26668
32
32
  tfduck/tga/train_sql_retain.py,sha256=AIOJKWC37j4UdM8JLFS6LdJFtABjMq9gOi3xvAs4fAE,24335
33
33
  tfduck/tga/train_sql_yh.py,sha256=nb5BO_vOv0eKY2kOVt5ZOfM1cvfI8j2no8cYpCL_rNE,24378
34
34
  tfduck/thinkdata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  tfduck/thinkdata/query.py,sha256=DsfcxjZrc0ZFTwN2pI5fKdM1Bwr6ageoPcA2MP3r2bE,1314
36
- tfduck_bsd-0.18.0.data/scripts/tfduck,sha256=UsuoAs4peJW4I-e6Gn91gEToP_YyuUp-rUUg3ObKneY,192
37
- tfduck_bsd-0.18.0.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
38
- tfduck_bsd-0.18.0.dist-info/METADATA,sha256=kdiL2okuGWTB1xd643seSd0pXOGoND5IxL5z2PVLIEc,1003
39
- tfduck_bsd-0.18.0.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
40
- tfduck_bsd-0.18.0.dist-info/top_level.txt,sha256=503etRkoyeI1VYcAwe5KpD5Bamhx0R0y2ofkE8HpRDA,7
41
- tfduck_bsd-0.18.0.dist-info/RECORD,,
36
+ tfduck_bsd-0.18.2.data/scripts/tfduck,sha256=UsuoAs4peJW4I-e6Gn91gEToP_YyuUp-rUUg3ObKneY,192
37
+ tfduck_bsd-0.18.2.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
38
+ tfduck_bsd-0.18.2.dist-info/METADATA,sha256=Xx0wZn3c1Vo6lt2XDd0Th8UMi-4zWXXs9IMffsvGL7M,1003
39
+ tfduck_bsd-0.18.2.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
40
+ tfduck_bsd-0.18.2.dist-info/top_level.txt,sha256=503etRkoyeI1VYcAwe5KpD5Bamhx0R0y2ofkE8HpRDA,7
41
+ tfduck_bsd-0.18.2.dist-info/RECORD,,