rajendrajaiswal | 318533f | 2020-03-09 15:41:41 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
rajendrajaiswal | 6a61ad8 | 2019-12-16 14:24:02 +0000 | [diff] [blame] | 3 | import time |
| 4 | import schedule |
| 5 | from pnf import PNF |
| 6 | import pnfconfig |
| 7 | |
| 8 | if __name__ == "__main__": |
| 9 | try: |
| 10 | pnf = PNF() |
rajendrajaiswal | 318533f | 2020-03-09 15:41:41 +0000 | [diff] [blame] | 11 | schedule.every(pnfconfig.ROP).seconds.do(pnf.pm_job) |
rajendrajaiswal | 6a61ad8 | 2019-12-16 14:24:02 +0000 | [diff] [blame] | 12 | while True: |
| 13 | schedule.run_pending() |
| 14 | time.sleep(1) |
| 15 | except Exception as error: |
| 16 | print(error) |