From 70ce25dcd6e1c4cd4d02ef1407751075efad2a40 Mon Sep 17 00:00:00 2001 From: Bogdan Tintor Date: Mon, 26 Aug 2024 10:22:11 +0200 Subject: [PATCH] CTX-6257: saving changes regarding url. --- coretex/cli/commands/task.py | 2 ++ coretex/entities/task_run/task_run.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/coretex/cli/commands/task.py b/coretex/cli/commands/task.py index 9e0c01a0..03b95a52 100644 --- a/coretex/cli/commands/task.py +++ b/coretex/cli/commands/task.py @@ -75,6 +75,8 @@ def run(path: str, name: Optional[str], description: Optional[str], snapshot: bo entryPoint = path ) + ui.stdEcho(f"Task Run successfully started. You can open it by clicking on this URL {ui.outputUrl(taskRun.entityUrl())}.") + taskRun.updateStatus(TaskRunStatus.preparingToStart) with TaskRunWorker(userConfig.refreshToken, taskRun.id): diff --git a/coretex/entities/task_run/task_run.py b/coretex/entities/task_run/task_run.py index 314bd6f1..43d5bfd1 100644 --- a/coretex/entities/task_run/task_run.py +++ b/coretex/entities/task_run/task_run.py @@ -177,7 +177,7 @@ def _endpoint(cls) -> str: @override def entityUrl(self) -> str: - return f"run?id={self.id}" + return f"workflow-run?id={self.id}" def onDecode(self) -> None: super().onDecode()