Fix issue

This commit is contained in:
Nuno Campos 2023-08-24 16:21:31 +02:00
parent f69155b4f7
commit f95bd0bcd9

View File

@ -107,7 +107,11 @@ def patch_config(
if deep_copy_locals: if deep_copy_locals:
config["_locals"] = deepcopy(config["_locals"]) config["_locals"] = deepcopy(config["_locals"])
if callbacks is not None: if callbacks is not None:
# If we're replacing callbacks we need to unset run_name and run_id
# As those should apply only to the same run as the original callbacks
config["callbacks"] = callbacks config["callbacks"] = callbacks
config["run_name"] = None
config["run_id"] = None
if recursion_limit is not None: if recursion_limit is not None:
config["recursion_limit"] = recursion_limit config["recursion_limit"] = recursion_limit
return config return config