mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Fix Jupyter notebook should always set Task as completed/stopped, never failed (exceptions are caught in interactive session)
This commit is contained in:
parent
fb7bc920ed
commit
f25dcde2c1
@ -2985,6 +2985,10 @@ class Task(_Task):
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# check if this is Jupyter interactive session, do not mark as exception
|
||||
if 'IPython' in sys.modules:
|
||||
is_exception = None
|
||||
|
||||
# only if we have an exception (and not ctrl-break) or signal is not SIGTERM / SIGINT
|
||||
if (is_exception and not isinstance(is_exception, KeyboardInterrupt)
|
||||
and is_exception != KeyboardInterrupt) \
|
||||
|
Loading…
Reference in New Issue
Block a user