Skip to content

Commit

Permalink
Remove SaveJobToDb action
Browse files Browse the repository at this point in the history
  • Loading branch information
shirte committed Dec 2, 2024
1 parent 541e85f commit 97a79bc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
1 change: 0 additions & 1 deletion nerdd_backend/actions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from .save_job_to_db import *
from .save_module_to_db import *
from .save_result_to_db import *
from .update_job_size import *
21 changes: 0 additions & 21 deletions nerdd_backend/actions/save_job_to_db.py

This file was deleted.

5 changes: 1 addition & 4 deletions nerdd_backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from fastapi.middleware.cors import CORSMiddleware
from omegaconf import DictConfig, OmegaConf

from .actions import SaveJobToDb, SaveModuleToDb, UpdateJobSize
from .actions import SaveModuleToDb, UpdateJobSize
from .lifespan import ActionLifespan, CreateModuleLifespan, InitializeAppLifespan
from .routers import (
jobs_router,
Expand All @@ -27,9 +27,6 @@
def create_app(cfg: DictConfig):
lifespans = [
InitializeAppLifespan(cfg),
ActionLifespan(
lambda app: SaveJobToDb(app.state.channel, app.state.repository)
),
ActionLifespan(
lambda app: UpdateJobSize(app.state.channel, app.state.repository)
),
Expand Down

0 comments on commit 97a79bc

Please sign in to comment.