Thank you for your last reply. I placed the function_id in the proper place in the JSON structure but I'm still struggling mightily with the args portion. To try and simplify a bit I am using named arguments:
image_dir,
output_dir,
json_file,
threshold,
batch_size
These get passed to my compute state as:
{
"input": {
"threshold": "0.5",
"batch_size": "64",
"image_dir": "tony_compute_test/AKI_25_1_CAKI1/DCIM",
"output_dir": "tony_compute_test/AKI_25_1_CAKI1/output",
"json_file": "tony.json"
}
}
I have tried many different things to get args set properly but they
1. Error out while validating the .json file with different errors OR
2. Error out during the run of the flow with a wide variety of errors OR
3. Runs with out error but does not pass the proper value to my python code
Most often it treats what I put inside the [ ] as a string instead of passing on the actual value
For example if I try:
"args.=": "[ '$.input.input_dir', '$.input.output_dir', '$.input.json_file', '$.input.threshold', '$.input.batch_size' ]",
In my flow results I see things like
"result": [
"/camtrapdata/$.input.image_dir\n/camtrapdata/$.input.output_dir\n$.input.json_file\n--threshold $.input.threshold\n--batch_size $.input.batch_size"
],
"results": [
{
"output": "/camtrapdata/$.input.image_dir\n/camtrapdata/$.input.output_dir\n$.input.json_file\n--threshold $.input.threshold\n--batch_size $input.batch_size",
"task_id": "897326f1-b813-4a51-9377-5414e7f79212"
The flow runs without error but the compute function actually fails because those values are gibberish