-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: remove parent task key #112
Conversation
/e2e --refs substra-backend=feat/remove-parent_task_key |
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
88f5ac2
to
cb7bdce
Compare
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
/e2e --refs substra-backend=feat/remove-parent_task_key |
End to end tests: ✔️ SUCCESS “It’s alive! It’s alive!” ― Henry Frankenstein, Frankenstein |
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
/e2e --refs substra-backend=feat/remove-parent_task_key --tests sdk,frontend --mode standalone |
End to end tests: ✔️ SUCCESS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks !!
CHANGELOG.md
Outdated
|
||
## Removed | ||
|
||
- field `parent_task_keys` in `ComputeTask` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put the PR number
lib/service/computetaskstate.go
Outdated
@@ -184,7 +184,7 @@ func (s *ComputeTaskService) propagateDone(triggeringParent, child *asset.Comput | |||
} | |||
|
|||
// loop over parent, only change status if all parents are DONE | |||
for _, parentKey := range child.ParentTaskKeys { | |||
for _, parentKey := range GetParentTaskKeys(child.Inputs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might worth testing if it take too long for big inputs (with 1000 datasamples for instance)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The e2e failes on SubstraFL and Benchmarks, seems to be because of a timeout error....
/e2e --refs substra-backend=feat/remove-parent_task_key --tests substrafl --mode standalone |
/e2e --refs substra-backend=feat/remove-parent_task_key --tests NONE --mode standalone --benchmark mnist,camelyon |
Something happened while processing your message: error: unknown option '--benchmark' |
/e2e --refs substra-backend=feat/remove-parent_task_key --tests NONE --mode standalone --benchmarks mnist,camelyon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E2E tests fail on SubstraFL and Benchmarks 😞
lib/service/computetaskstate.go
Outdated
@@ -184,7 +184,7 @@ func (s *ComputeTaskService) propagateDone(triggeringParent, child *asset.Comput | |||
} | |||
|
|||
// loop over parent, only change status if all parents are DONE | |||
for _, parentKey := range child.ParentTaskKeys { | |||
for _, parentKey := range GetParentTaskKeys(child.Inputs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The e2e failes on SubstraFL and Benchmarks, seems to be because of a timeout error....
For the Mnist benchmark, the performances are impacted: It would be interested to launch a CP locally and check how the graph of tasks is build. |
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
/e2e --refs substra-backend=feat/remove-parent_task_key --tests sdk,substrafl,frontend --benchmarks mnist,camelyon |
End to end tests: ✔️ SUCCESS “Carpe diem. Seize the day, boys.” ― John Keating, Dead Poets Society |
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
Signed-off-by: Guilhem Barthes <guilhem.barthes@owkin.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix, can't wait to see it in action ;)
## Removed | ||
|
||
- field `parent_task_keys` in `ComputeTask` ([#112](https://github.com/Substra/orchestrator/pull/112)) | ||
- view `expanded_compute_tasks` ([#112](https://github.com/Substra/orchestrator/pull/112)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just put #112, github does the link to the PR automatically :)
@@ -204,7 +199,7 @@ func (s *ComputeTaskService) propagateDone(triggeringParent, child *asset.Comput | |||
return nil | |||
} | |||
} | |||
err := s.applyTaskAction(child, transitionTodo, fmt.Sprintf("Last parent task %s done", triggeringParent.Key)) | |||
err = s.applyTaskAction(child, transitionTodo, fmt.Sprintf("Last parent task %s done", triggeringParent.Key)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my info: why remove the ":" here ?
Companion PR
Description
compute_task_parents
:ComputeTask
expanded_compute_tasks
How has this been tested?
CI
Checklist