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

Add check if notebook is still waiting for worker #451

Open
pplonski opened this issue May 21, 2024 · 0 comments
Open

Add check if notebook is still waiting for worker #451

pplonski opened this issue May 21, 2024 · 0 comments

Comments

@pplonski
Copy link
Contributor

Please check if session is still waiting for worker before spinning new worker. I think fix code should be here

notebook_id = job_params["notebook_id"]
session_id = job_params["session_id"]
worker_id = job_params["worker_id"]
worker_url = f"http://{worker_ip}/start/{notebook_id}/{session_id}/{worker_id}"
log.info(f"Try to start worker {worker_url}")
response = requests.get(worker_url, timeout=5)
log.info(f"Response from worker {response.status_code}")
if response.status_code == 200:

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

No branches or pull requests

1 participant