-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backend: Link multiple jobs to a single experiment (#570)
Create a new experiment instance in the database and link each job the new experiment spawns to it. Refs #570 Signed-off-by: Dimitris Poulopoulos <dimitris@mozilla.ai>
- Loading branch information
1 parent
6f0f1f5
commit fbe3fab
Showing
5 changed files
with
58 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
lumigator/python/mzai/backend/backend/repositories/experiments.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from sqlalchemy.orm import Session | ||
|
||
from backend.records.experiments import ExperimentRecord | ||
from backend.repositories.base import BaseRepository | ||
|
||
|
||
class ExperimentRepository(BaseRepository[ExperimentRecord]): | ||
def __init__(self, session: Session): | ||
super().__init__(ExperimentRecord, session) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters