Skip to content

Commit

Permalink
Logging entry point functions
Browse files Browse the repository at this point in the history
  • Loading branch information
d-krupke committed Feb 25, 2024
1 parent ca1c0bb commit 75cc777
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/slurminade/function_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import pathlib
import typing
from pathlib import Path
import logging

from .execute_cmds import call_slurminade_to_get_function_ids

Expand Down Expand Up @@ -101,6 +102,7 @@ def check_id(func_id: str) -> bool:
if func_id in FunctionMap._ids:
return True
FunctionMap._ids = call_slurminade_to_get_function_ids(get_entry_point())
logging.getLogger("slurminade").info("Entry point '%s' has functions %s", get_entry_point(), list(FunctionMap._ids))
return func_id in FunctionMap._ids

@staticmethod
Expand Down

0 comments on commit 75cc777

Please sign in to comment.