rajendrajaiswal | 6a61ad8 | 2019-12-16 14:24:02 +0000 | [diff] [blame] | 1 | import time |
2 | import schedule | ||||
3 | from pnf import PNF | ||||
4 | import pnfconfig | ||||
5 | |||||
6 | if __name__ == "__main__": | ||||
7 | try: | ||||
8 | pnf = PNF() | ||||
9 | schedule.every(pnfconfig.rop).seconds.do(lambda: pnf.pm_job(pnfconfig.VES_IP, pnfconfig.VES_PORT)) | ||||
10 | while True: | ||||
11 | schedule.run_pending() | ||||
12 | time.sleep(1) | ||||
13 | except Exception as error: | ||||
14 | print(error) |