(self)
| 34 | # super().init_process() |
| 35 | |
| 36 | def run(self): |
| 37 | self.loop = self.app.callable.make_event_loop(config=self.app.config) |
| 38 | asyncio.set_event_loop(self.loop) |
| 39 | |
| 40 | self._init_signals() |
| 41 | |
| 42 | self._runner = asyncio.ensure_future(self._run(), loop=self.loop) |
| 43 | |
| 44 | # import cProfile |
| 45 | # prof = cProfile.Profile() |
| 46 | # prof.enable() |
| 47 | try: |
| 48 | self.loop.run_until_complete(self._runner) |
| 49 | finally: |
| 50 | self.loop.close() |
| 51 | # prof.disable() |
| 52 | # prof.dump_stats('/tmp/out.pyprof') |
| 53 | |
| 54 | sys.exit(self.exit_code) |
| 55 | |
| 56 | async def close(self): |
| 57 | if self.handlers: |
no test coverage detected