Refactor controller constructor

This commit is contained in:
Stéphane Bidoul 2021-11-28 13:33:25 +01:00
parent e961780d1b
commit 25477fed61
No known key found for this signature in database
GPG key ID: BCAB2555446B5B92

View file

@ -30,14 +30,8 @@ class Controller:
- The 'undeployer' undeploys old stopped deployments.
"""
db: BuildsDb
_tasks: list[asyncio.Task[None]]
_wakeup_initializer: asyncio.Event
_wakeup_stopper: asyncio.Event
_wakeup_undeployer: asyncio.Event
def __init__(self) -> None:
self._tasks = []
self._tasks: list[asyncio.Task[None]] = []
self._wakeup_initializer = asyncio.Event()
self._wakeup_stopper = asyncio.Event()
self._wakeup_undeployer = asyncio.Event()