Hi, I am having an issue where a downstream flow t...
# ask-metaflow
m
Hi, I am having an issue where a downstream flow triggered from an ArgoEvent has an
IncludeFile
flow param that looks like this:
Copy code
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:
Copy code
@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:
Copy code
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 🙏🏻
1
s
@mysterious-coat-51999 which version of metaflow was used to deploy the flow?
m
I see
2.12.9
from
pip list
a
let me triage and get back to you
m
Thank you very much. If I learn anything more in my debugging I will share here
Ok, we can simplify the problem I am facing. I think it has nothing to do with the triggering or event/sensor mechanisms. I can’t seem to get the flow to run with
IncludeFile
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
.
I am wondering now if
IncludeFile
cannot default to
None
and must always be passed a file (and any default must be a file…).