Skip to content

Commit

Permalink
fix: register at fork must be callable
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirdavid1 committed Dec 5, 2024
1 parent 6a48d84 commit 94ce407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion initializer/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def initialize_components(trace_exporters = None, metric_exporters = None, log_e
# In case of forking, the OpAMP client should be started in the child process.
# e.g when using gunicorn/celery with multiple workers.
os.register_at_fork(
after_in_child=start_opamp_client(threading.Event())
after_in_child=lambda: start_opamp_client(threading.Event()),
) # pylint: disable=protected-access


Expand Down

0 comments on commit 94ce407

Please sign in to comment.