into_workflow_progress=f"update workflow_progress set status_val=3,status='抓取结束' where page='店铺产品' and date_info='{self.year_month.replace('_', '-')}' and site_name='{self.site_name}' and date_type='month'"
into_workflow_progress=f"update workflow_progress set status_val=3,status='抓取结束' where page='店铺产品' and date_info='{self.year_month.replace('_', '-')}' and site_name='{self.site_name}' and date_type='month'"
print(into_workflow_progress)
print(into_workflow_progress)
cursor_us.execute(into_workflow_progress)
cursor_us.execute(into_workflow_progress)
...
@@ -436,7 +436,7 @@ class async_account_name_products(BaseUtils):
...
@@ -436,7 +436,7 @@ class async_account_name_products(BaseUtils):
}
}
try:
try:
requests.post(url=url,data=data,timeout=15)
requests.post(url=url,data=data,timeout=15)
except:
exceptException:
pass
pass
cursor_us.close()
cursor_us.close()
connect_us.close()
connect_us.close()
...
@@ -475,21 +475,21 @@ class async_account_name_products(BaseUtils):
...
@@ -475,21 +475,21 @@ class async_account_name_products(BaseUtils):
self.engine=self.mysql_connect()
self.engine=self.mysql_connect()
sql_read=f'SELECT account_name, id, seller_id FROM {self.db_seller_account_syn} WHERE product_state=1 LIMIT {self.read_size} for update;'
sql_read=f'SELECT account_name, id, seller_id FROM {self.db_seller_account_syn} WHERE product_state=1 LIMIT {self.read_size} for update;'