Register a zero-arg callable to run once at worker startup (e.g. to populate the tool/analyzer registries).
Source code in src/interlens/runner/worker_init.py
| def register_worker_init(fn) -> object:
"""Register a zero-arg callable to run once at worker startup (e.g. to populate the tool/analyzer registries)."""
_WORKER_INIT_HOOKS.append(fn)
return fn
|