From 3210b4542daa57d304ed1d72427337132a2e7511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Barth=C3=A9s?= Date: Wed, 10 Apr 2024 15:29:08 +1000 Subject: [PATCH 1/5] feat: add `download_function` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guilhem Barthés --- src/types/TasksTypes.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/TasksTypes.ts b/src/types/TasksTypes.ts index e5441aed..5b4e711a 100644 --- a/src/types/TasksTypes.ts +++ b/src/types/TasksTypes.ts @@ -121,6 +121,7 @@ export type TaskT = { export enum TaskStep { imageBuilding = 'build_image', inputsPreparation = 'prepare_inputs', + functionDownloading = 'download_function', taskExecution = 'task_execution', outputsSaving = 'save_outputs', } From 11a3c2566d2b51d43c0ee6a8c88ce0bb56a45858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Barth=C3=A9s?= Date: Wed, 10 Apr 2024 15:29:53 +1000 Subject: [PATCH 2/5] feat: add style for `functionDownloading` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guilhem Barthés --- src/routes/tasks/TasksUtils.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/routes/tasks/TasksUtils.tsx b/src/routes/tasks/TasksUtils.tsx index 0e39147d..25494f70 100644 --- a/src/routes/tasks/TasksUtils.tsx +++ b/src/routes/tasks/TasksUtils.tsx @@ -29,6 +29,13 @@ export const getStepInfo = (step: TaskStep): StepInfoT => { description: 'Get the assets (dataset, models) to the directory that will be shared with the task container.', }; + case TaskStep.functionDownloading: + return { + title: 'Downloading function', + color: 'teal.500', + description: + 'If the image has been built on another node, the organization executing the task has to download the function from the other organization.', + }; case TaskStep.taskExecution: return { title: 'Task execution', From 0d27abfc0dfed944813ced5fba7596ab90569074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Barth=C3=A9s?= Date: Wed, 10 Apr 2024 15:31:12 +1000 Subject: [PATCH 3/5] doc: changelog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guilhem Barthés --- changes/1520.added | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/1520.added diff --git a/changes/1520.added b/changes/1520.added new file mode 100644 index 00000000..0c2bc377 --- /dev/null +++ b/changes/1520.added @@ -0,0 +1 @@ +Profiling step \`download_function\` \ No newline at end of file From 7753528daf510fb9cb9b01e316d3f0a18bb56a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Barth=C3=A9s?= Date: Wed, 10 Apr 2024 15:37:18 +1000 Subject: [PATCH 4/5] doc: changelog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guilhem Barthés --- changes/1520.added | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changes/1520.added b/changes/1520.added index 0c2bc377..8400732d 100644 --- a/changes/1520.added +++ b/changes/1520.added @@ -1 +1 @@ -Profiling step \`download_function\` \ No newline at end of file +Profiling step `download_function` From 15e626de0c8ff20349ea7e84b2facdf60909858d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Barth=C3=A9s?= Date: Wed, 10 Apr 2024 17:56:51 +1000 Subject: [PATCH 5/5] fix: update wording for new status MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guilhem Barthés --- src/routes/tasks/TasksUtils.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/tasks/TasksUtils.tsx b/src/routes/tasks/TasksUtils.tsx index 25494f70..3da83408 100644 --- a/src/routes/tasks/TasksUtils.tsx +++ b/src/routes/tasks/TasksUtils.tsx @@ -32,9 +32,9 @@ export const getStepInfo = (step: TaskStep): StepInfoT => { case TaskStep.functionDownloading: return { title: 'Downloading function', - color: 'teal.500', + color: 'primary.500', description: - 'If the image has been built on another node, the organization executing the task has to download the function from the other organization.', + 'If the function image has been built on another organisation, the organisation executing the task has to download the image from this other organisation.', }; case TaskStep.taskExecution: return {