🔥 refactor(main.py): remove initialize_database function call from app startup event to improve code cleanliness and remove unnecessary database initialization 🔥 refactor(base.py): remove unused teardown method and add set_ready method to improve code cleanliness and provide a way to set service readiness
12 lines
170 B
Python
12 lines
170 B
Python
from abc import ABC
|
|
|
|
|
|
class Service(ABC):
|
|
name: str
|
|
ready: bool = False
|
|
|
|
def teardown(self):
|
|
pass
|
|
|
|
def set_ready(self):
|
|
self.ready = True
|