mns-common 1.3.5.6__py3-none-any.whl → 1.3.5.7__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 mns-common might be problematic. Click here for more details.
- mns_common/component/task/real_time_data_sync_check.py +9 -9
- {mns_common-1.3.5.6.dist-info → mns_common-1.3.5.7.dist-info}/METADATA +1 -1
- {mns_common-1.3.5.6.dist-info → mns_common-1.3.5.7.dist-info}/RECORD +5 -5
- {mns_common-1.3.5.6.dist-info → mns_common-1.3.5.7.dist-info}/WHEEL +0 -0
- {mns_common-1.3.5.6.dist-info → mns_common-1.3.5.7.dist-info}/top_level.txt +0 -0
|
@@ -78,15 +78,15 @@ def exist_sync_task():
|
|
|
78
78
|
def check_data_sync_task_status():
|
|
79
79
|
now_date = datetime.datetime.now()
|
|
80
80
|
str_day = now_date.strftime('%Y-%m-%d')
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
81
|
+
|
|
82
|
+
if bool(date_util.is_trade_time(now_date)):
|
|
83
|
+
if bool(1 - query_data_exist(str_day)) or bool(1 - exist_sync_task()):
|
|
84
|
+
real_time_sync_task_open()
|
|
85
|
+
time.sleep(2)
|
|
86
|
+
elif bool(date_util.is_no_trade_time(now_date)):
|
|
87
|
+
return
|
|
88
|
+
else:
|
|
89
|
+
time.sleep(5)
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
if __name__ == '__main__':
|
|
@@ -112,7 +112,7 @@ mns_common/component/self_choose/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4
|
|
|
112
112
|
mns_common/component/self_choose/black_list_service_api.py,sha256=BUySMNHDM3OzXe3g7WGola8_yGZ0ub_fjHj7e6-eB7s,1993
|
|
113
113
|
mns_common/component/self_choose/self_choose_service_api.py,sha256=v-ThYn5OMva-ciawOFaGi_joxDzLp5HYUHuIP7wz5Z8,1456
|
|
114
114
|
mns_common/component/task/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
115
|
-
mns_common/component/task/real_time_data_sync_check.py,sha256=
|
|
115
|
+
mns_common/component/task/real_time_data_sync_check.py,sha256=Ss_7XRGCYPG5fwPLove2wtI-AF5r0x2S06DddaxyfY4,3333
|
|
116
116
|
mns_common/component/tfp/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
117
117
|
mns_common/component/tfp/stock_tfp_api.py,sha256=iYCBA4DjZZ1ioDKuB8z_uUEuhL0eWPY7K9QkQl9yrik,2135
|
|
118
118
|
mns_common/component/trade_date/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
|
|
@@ -140,7 +140,7 @@ mns_common/utils/date_handle_util.py,sha256=XS-MyA8_7k35LOCFAYOHgVcVkMft_Kc4Wa9U
|
|
|
140
140
|
mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
|
|
141
141
|
mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
|
|
142
142
|
mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
|
|
143
|
-
mns_common-1.3.5.
|
|
144
|
-
mns_common-1.3.5.
|
|
145
|
-
mns_common-1.3.5.
|
|
146
|
-
mns_common-1.3.5.
|
|
143
|
+
mns_common-1.3.5.7.dist-info/METADATA,sha256=SKwYaZR1_q2gnIK1hIDfVGnSdkWIy8JDqxjDxmHdSJo,61
|
|
144
|
+
mns_common-1.3.5.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
145
|
+
mns_common-1.3.5.7.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
|
|
146
|
+
mns_common-1.3.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|