Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【BUG】When using ContainerTask as a task, how to pass a large number of input parameters into the image. #6029

Open
2 tasks done
doLei-2001 opened this issue Nov 19, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@doLei-2001
Copy link

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,

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.

  1. Get parameters directly from json
  2. 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
@doLei-2001 doLei-2001 added enhancement New feature or request untriaged This issues has not yet been looked at by the Maintainers labels Nov 19, 2024
Copy link

welcome bot commented Nov 19, 2024

Thank you for opening your first issue here! 🛠

@doLei-2001 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
@eapolinario eapolinario removed the untriaged This issues has not yet been looked at by the Maintainers label Nov 21, 2024
@eapolinario eapolinario self-assigned this Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants