tfduck-bsd 0.18.8__tar.gz → 0.18.9__tar.gz
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-bsd-0.18.8/tfduck_bsd.egg-info → tfduck-bsd-0.18.9}/PKG-INFO +1 -1
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/setup.py +1 -1
- tfduck-bsd-0.18.9/tfduck/__init__.py +1 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/serverless_k8s/k8s_manage.py +24 -21
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/serverless_k8s/k8s_task.py +1 -1
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9/tfduck_bsd.egg-info}/PKG-INFO +1 -1
- tfduck-bsd-0.18.8/tfduck/__init__.py +0 -1
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/LICENSE +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/README.md +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/bin/tfduck +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/setup.cfg +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/bdp_sdk_py/__init__.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/bdp_sdk_py/config/__init__.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/bdp_sdk_py/config/bdpmanager.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/bdp_sdk_py/config/table_config.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/bdp_sdk_py/example.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/bdp_sdk_py/opends/__init__.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/bdp_sdk_py/opends/opends.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/bdp_sdk_py/opends/sdk.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/common/__init__.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/common/defines.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/common/defines_clean.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/common/extendEncoder.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/main.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/oss/__init__.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/oss/oss.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/pyspark_k8s/__init__.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/pyspark_k8s/k8s_manage.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/pyspark_k8s/spark_manage.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/s3/__init__.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/s3/s3oper.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/sagemaker/__init__.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/sagemaker/saoper.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/serverless_k8s/__init__.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/tga/__init__.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/tga/base_tga.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/tga/predict_sql_ltv.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/tga/predict_sql_retain.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/tga/predict_sql_yh.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/tga/tga.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/tga/tga_test.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/tga/train_sql_ltv.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/tga/train_sql_retain.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/tga/train_sql_yh.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/thinkdata/__init__.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck/thinkdata/query.py +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck_bsd.egg-info/SOURCES.txt +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck_bsd.egg-info/dependency_links.txt +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck_bsd.egg-info/requires.txt +0 -0
- {tfduck-bsd-0.18.8 → tfduck-bsd-0.18.9}/tfduck_bsd.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__="0.18.9"
|
|
@@ -10,27 +10,30 @@ pip install kubernetes==12.0.1 oss2==2.19.1
|
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
if 1:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
urllib3.PoolManager.__init__
|
|
13
|
+
try:
|
|
14
|
+
# 解决 【CA_KEY_TOO_SMALL】的报错,利用猴子补丁[monkey Patching ] ,适用于urllib3==2.x版本
|
|
15
|
+
import urllib3
|
|
16
|
+
from urllib3.util.ssl_ import create_urllib3_context
|
|
17
|
+
|
|
18
|
+
# 创建自定义 SSL 上下文(复用 urllib3 默认配置基础上修改)
|
|
19
|
+
ctx = create_urllib3_context()
|
|
20
|
+
ctx.set_ciphers("DEFAULT@SECLEVEL=0") # 例如降低安全级别
|
|
21
|
+
ctx.load_default_certs() # 确保加载系统证书
|
|
22
|
+
|
|
23
|
+
# 保存原始 PoolManager 初始化方法(便于回滚)
|
|
24
|
+
_original_poolmanager_init = urllib3.PoolManager.__init__
|
|
25
|
+
|
|
26
|
+
def _patched_poolmanager_init(self, *args, **kwargs):
|
|
27
|
+
# 仅在未显式传递 ssl_context 时注入自定义上下文
|
|
28
|
+
if "ssl_context" not in kwargs:
|
|
29
|
+
kwargs["ssl_context"] = ctx
|
|
30
|
+
_original_poolmanager_init(self, *args, **kwargs)
|
|
31
|
+
|
|
32
|
+
# 应用补丁(确保只执行一次)
|
|
33
|
+
if urllib3.PoolManager.__init__ != _patched_poolmanager_init:
|
|
34
|
+
urllib3.PoolManager.__init__ = _patched_poolmanager_init
|
|
35
|
+
except Exception as _:
|
|
36
|
+
pass
|
|
34
37
|
|
|
35
38
|
import json
|
|
36
39
|
|
|
@@ -278,7 +278,7 @@ class ServerlessTaskManage(object):
|
|
|
278
278
|
wait_time = 0
|
|
279
279
|
# 第一阶段判断--进入Running状态--
|
|
280
280
|
pd_1 = 0
|
|
281
|
-
pd_1_status = ["Running"]
|
|
281
|
+
pd_1_status = ["Running", "Succeeded", "Failed"]
|
|
282
282
|
max_pd_1 = 30 # 最大等待次数
|
|
283
283
|
while pod_obj.status.phase not in pd_1_status and pd_1 < max_pd_1:
|
|
284
284
|
time.sleep(10)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__="0.18.8"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|