diff --git a/src/neptune_scale/api/run.py b/src/neptune_scale/api/run.py index 56cb304a..2480d4fc 100644 --- a/src/neptune_scale/api/run.py +++ b/src/neptune_scale/api/run.py @@ -372,6 +372,9 @@ def __init__( fork_step=fork_step, ) + if mode == "async": + self._print_run_info() + # enable stdout / stderr logging at the end of the constructor, when everything is ready if self._console_log_capture is not None: self._console_log_capture.start() @@ -382,6 +385,12 @@ def _handle_sync_process_death(self) -> None: if self._errors_queue is not None: self._errors_queue.put(NeptuneSynchronizationStopped()) + def _print_run_info(self) -> None: + try: + logger.info(f"View your run in the app:\n{self.get_run_url()}") + except Exception as e: + logger.debug(f"Error while printing run info: {e}") + def _close(self, *, timeout: Optional[float] = None) -> None: timer = Timer(timeout)