async def async_timeout_run(self, callback): try: async with async_timeout.timeout(60): await getattr(self, callback)() except asyncio.TimeoutError as t: self.logger.warning(t) await self.async_timeout_run('delete_api')