Skip to content

Commit 62f4fb7

Browse files
committed
Add a message with job id and suggested command
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
1 parent 27baa49 commit 62f4fb7

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

cluv/cli/submit.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,11 @@ async def submit(
100100
)
101101
output = await remote.get_output(remote_cmd)
102102
job_id = int(output.strip())
103+
104+
console.log(
105+
f"Successfully submitted job {job_id} on the {cluster} cluster.\n"
106+
f"Use `ssh {cluster} sacct -j {job_id}` to view its status."
107+
)
108+
103109
return job_id
104110
# return the job id?

cluv/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import rich.console
66

7+
# todo: seeing some weird behaviour with stderr, the progress bars repeating themselves, etc.
78
console = rich.console.Console(record=True, file=sys.stdout)
8-
_console = rich.console.Console(record=True, file=sys.stderr)
99

1010

1111
def current_cluster() -> str | None:

0 commit comments

Comments
 (0)