Conditions | 3 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
1 | import eventlet |
||
29 | def _run_worker(): |
||
30 | LOG.info('(PID=%s) Actions notifier started.', os.getpid()) |
||
31 | actions_notifier = notifier.get_notifier() |
||
32 | actions_rescheduler = scheduler.get_rescheduler() |
||
33 | try: |
||
34 | eventlet.spawn(actions_rescheduler.start) |
||
35 | actions_notifier.start(wait=True) |
||
36 | except (KeyboardInterrupt, SystemExit): |
||
37 | LOG.info('(PID=%s) Actions notifier stopped.', os.getpid()) |
||
38 | actions_rescheduler.shutdown() |
||
39 | actions_notifier.shutdown() |
||
40 | except: |
||
41 | return 1 |
||
42 | return 0 |
||
43 | |||
60 |