|
@@ -46,7 +46,14 @@ on a.signature=b.signature
|
|
TidbProConn.conn_close(self.conn)
|
|
TidbProConn.conn_close(self.conn)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
logging.error(e)
|
|
logging.error(e)
|
|
|
|
+ return -1
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
- MaterialFristCostDateUpdate().TaskHandler()
|
|
|
|
|
|
+ status = MaterialFristCostDateUpdate().TaskHandler()
|
|
|
|
+ if status == 0:
|
|
|
|
+ print("作业执行成功")
|
|
|
|
+ exit(0)
|
|
|
|
+ else:
|
|
|
|
+ print("作业执行失败")
|
|
|
|
+ exit(-1)
|