Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot resume a run in debug mode #587

Open
wjaskowski opened this issue May 28, 2021 · 2 comments
Open

Cannot resume a run in debug mode #587

wjaskowski opened this issue May 28, 2021 · 2 comments

Comments

@wjaskowski
Copy link
Contributor

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import neptune.new as neptune
run = neptune.init(mode='debug')
run.sync()
run.wait()
rid = run['sys/id'].fetch()
run = neptune.init(mode='debug', run=rid)
rid = run['sys/id'].fetch()

fails with:

  File "err4.py", line 8, in <module>
    run = neptune.init(mode='debug', run=rid)
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/init_impl.py", line 259, in init
    api_run = backend.get_run(project + '/' + run)
  File "/home/wojciech/miniconda3/envs/nori/lib/python3.8/site-packages/neptune/new/internal/backends/neptune_backend_mock.py", line 133, in get_run
    raise RunNotFound(run_id)
neptune.new.exceptions.RunNotFound: Run offline/project-placeholder/OFFLINE-1 not found.
@Herudaio
Copy link
Contributor

Herudaio commented Jun 7, 2021

@wjaskowski It seems we didn't anticipate this scenario initially. We are discussing internally how we can approach this.

I'll be posting updates to this issue.

@wjaskowski
Copy link
Contributor Author

I think the workaround is quite easy. It is enough to imply that when mode='debug' then run_id=None. This is fine for me at least. I use 'debug' model only when I don't want to send things to neptune.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants