()
| 95 | |
| 96 | |
| 97 | def main(): |
| 98 | try: |
| 99 | _setup() |
| 100 | return _run_worker() |
| 101 | except SystemExit as exit_code: |
| 102 | sys.exit(exit_code) |
| 103 | except: |
| 104 | LOG.exception("(PID=%s) Worker quit due to exception.", os.getpid()) |
| 105 | return 1 |
| 106 | finally: |
| 107 | _teardown() |
nothing calls this directly
no test coverage detected