mysterious-coat-51999
08/09/2024, 9:12 PMIncludeFile
flow param that looks like this:
eval_run_config_file: str | None = IncludeFile( # type: ignore
name="eval_run_config_file",
default=None, # type: ignore
required=False,
)
The trigger conditions are as so:
@trigger(
event={
"name": "prediction_run_split_created",
"parameters": ["env", "prediction_run_id", "split"],
}
)
The sensor pod logs show the event was process successfully and sent these params:
Parameters:
env: "dev"
eval_run_config_file: null
eval_run_desc: ""
prediction_run_id: "4f84e754-063a-4be2-b04c-44edb599cb6d"
split: "VALIDATION"
But then the flow fails in start
step saying: Error: Invalid value for '--eval_run_config_file': IncludeFile: could not open file 'null' for reading
I want the triggered flow to default eval_run_config_file
to None
in this condition, but it’s not working. Any advice? Am I doing something wrong? Is this a bug?
Help appreciated! Thank you 🙏🏻square-wire-39606
08/09/2024, 9:14 PMmysterious-coat-51999
08/09/2024, 9:16 PM2.12.9
from pip list
ancient-application-36103
08/09/2024, 9:18 PMmysterious-coat-51999
08/09/2024, 9:18 PMmysterious-coat-51999
08/09/2024, 9:26 PMIncludeFile
when I set required=False
, with or without event trigger.
It gives the same error: Error: Invalid value for '--eval_run_config_file': IncludeFile: could not open file 'null' for reading
.mysterious-coat-51999
08/09/2024, 9:29 PMIncludeFile
cannot default to None
and must always be passed a file (and any default must be a file…).