Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions orchestrator/modules/actuators/custom_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,19 @@ def wrapper(

return observed_property_values

# Set the wrapper's __signature__ so it is (entity,experiment)
# This is required for the wrapped function to be used with ray.remote
import inspect

wrapper.__signature__ = inspect.Signature(
[
inspect.Parameter("entity", inspect.Parameter.POSITIONAL_OR_KEYWORD),
inspect.Parameter(
"experiment", inspect.Parameter.POSITIONAL_OR_KEYWORD
),
]
)

# If we were not given information on required/optional properties
# or parameterization try to infer it
# This function will log a critical error message and raise exception
Expand Down