Skip to content

Commit

Permalink
CTX-6257: saving changes regarding url.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Tintor committed Aug 26, 2024
1 parent 534ba91 commit 70ce25d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions coretex/cli/commands/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion coretex/entities/task_run/task_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 70ce25d

Please sign in to comment.