You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two methods I know of now. One is to pass in parameters one by one,
python3 hello.py param1 param2
the second method is to pass in a FlyteFile,
{
paramA: xxx
}
and use with open in the image to open the file and read the content.
This is inconvenient. I hope to be able to directly pass in dict, or the passed in FlyteFile can directly retrieve the fields in the image without writing the logic of reading FlyteFIle.
Goal: What should the final outcome look like, ideally?
I hope to be able to directly pass in dict, or the passed in FlyteFile can directly retrieve the fields in the image without writing the logic of reading FlyteFIle.
Get parameters directly from json
Get the parameters directly from FlyteFile,
param1=input_file["param1"]
Describe alternatives you've considered
The parameters are automatically passed into the image by Flyte, and can be directly obtained in the image
Propose: Link/Inline OR Additional context
No response
Are you sure this issue hasn't been raised already?
Yes
Have you read the Code of Conduct?
Yes
The text was updated successfully, but these errors were encountered:
doLei-2001
changed the title
When using ContainerTask as a task, how to pass a large number of input parameters into the image.
【BUG】When using ContainerTask as a task, how to pass a large number of input parameters into the image.
Nov 21, 2024
Motivation: Why do you think this is important?
There are two methods I know of now. One is to pass in parameters one by one,
the second method is to pass in a FlyteFile,
{ paramA: xxx }
and use with open in the image to open the file and read the content.
This is inconvenient. I hope to be able to directly pass in dict, or the passed in FlyteFile can directly retrieve the fields in the image without writing the logic of reading FlyteFIle.
Goal: What should the final outcome look like, ideally?
I hope to be able to directly pass in dict, or the passed in FlyteFile can directly retrieve the fields in the image without writing the logic of reading FlyteFIle.
Describe alternatives you've considered
The parameters are automatically passed into the image by Flyte, and can be directly obtained in the image
Propose: Link/Inline OR Additional context
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: