Skip to content

Commit

Permalink
Remove DB interface from _on_start
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdw committed Jan 11, 2025
1 parent aef571f commit 06db48a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/prefect/server/services/loop_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import pendulum

from prefect.logging import get_logger
from prefect.server.database import PrefectDBInterface, inject_db
from prefect.settings import PREFECT_API_LOG_RETRYABLE_ERRORS
from prefect.utilities.processutils import _register_signal

Expand Down Expand Up @@ -46,8 +45,7 @@ def __init__(
_register_signal(signal.SIGINT, self._stop)
_register_signal(signal.SIGTERM, self._stop)

@inject_db
async def _on_start(self, db: PrefectDBInterface) -> None:
async def _on_start(self) -> None:
"""
Called prior to running the service
"""
Expand Down

0 comments on commit 06db48a

Please sign in to comment.