Skip to content

Commit

Permalink
More debug msg
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Aug 2, 2023
1 parent b4e7033 commit 3a9c1e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion voila/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ def init_settings(self) -> Dict:
if preheat_kernel and self.prelaunch_hook:
raise Exception("`preheat_kernel` and `prelaunch_hook` are incompatible")

print('--- DEBUG preheat', preheat_kernel)
print("--- DEBUG preheat", preheat_kernel)

kernel_manager_class = voila_kernel_manager_factory(
self.voila_configuration.multi_kernel_manager_class,
Expand Down
1 change: 1 addition & 0 deletions voila/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def wait_for_request(url: str = None) -> str:
ws_base_url = os.getenv(ENV_VARIABLE.VOILA_WS_BASE_URL, server_url)
url = f"{protocol}://{server_ip}:{server_port}{ws_base_url}voila/query"

print("-- DEBUG kernel_id", kernel_id)
kernel_id = os.getenv(ENV_VARIABLE.VOILA_KERNEL_ID)
ws_url = f"{url}/{kernel_id}"

Expand Down
9 changes: 4 additions & 5 deletions voila/voila_kernel_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def voila_kernel_manager_factory(
T: Decorated class
"""
if not preheat_kernel:
print("--- DEBUG created NON preheat manager")

print('--- DEBUG created NON preheat manager')
class NormalKernelManager(base_class):
@property
def notebook_data(self) -> TypeDict:
Expand All @@ -66,8 +66,7 @@ def get_pool_size(self, nb: str) -> int:
return NormalKernelManager

else:

print('--- DEBUG created preheat manager')
print("--- DEBUG created preheat manager")

class VoilaKernelManager(base_class):
"""This class adds pooling heated kernels and pre-rendered notebook
Expand Down Expand Up @@ -243,8 +242,8 @@ def fill_if_needed(
kwargs["env"] = kernel_env

heated = len(pool)
print('--- DEBUG pool of', heated)
print('--- DEBUG kernel size', kernel_size)
print("--- DEBUG pool of", heated)
print("--- DEBUG kernel size", kernel_size)

def task_counter(tk):
nonlocal heated
Expand Down

0 comments on commit 3a9c1e8

Please sign in to comment.