-
Notifications
You must be signed in to change notification settings - Fork 774
Open
Labels
Description
Description
There are few tasks left in run service:
- Some function pass protobuf request directly to the repository. This violates separation of concerns and creates a dependency from the repository layer to the API layer. We should refactor this to follow how we did in
task_service
flyte/runs/service/run_service.go
Line 53 in 5c20324
| run, err := s.repo.ActionRepo().CreateRun(ctx, req.Msg) |
flyte/runs/service/task_service.go
Line 66 in 5c20324
| err = s.db.TaskRepo().CreateTask(ctx, taskModel) |
- There's some TODOs left that we need to build the response from the run model
flyte/runs/service/run_service.go
Lines 163 to 169 in 5c20324
| // TODO: Build full RunDetails from the run model | |
| // For now, return a minimal response | |
| resp := &workflow.GetRunDetailsResponse{ | |
| Details: &workflow.RunDetails{ | |
| // Would populate this from run model | |
| }, | |
| } |
Can also follow what we have in task service
flyte/runs/service/task_service.go
Line 82 in 5c20324
| tasks, err := transformers.TaskModelsToTaskDetailsWithoutIdentity(ctx, []*models.Task{model}) |