Nada Saiyed
09/14/2022, 5:05 AMPythonInstanceTask
type plugin. I need to reference the default image that this task will run on, during remote execution. how can i reference that? thanks!Samhita Alla
Nada Saiyed
09/14/2022, 6:08 AMcontainer_image
.during task definition.
I need to reference the default image uri that was provided while serializing the task.
How can that be done?Samhita Alla
Nada Saiyed
09/14/2022, 6:16 AMSamhita Alla
PythonInstanceTask
as well.Nada Saiyed
09/14/2022, 6:20 AMpyflyte —-pkgs workflows.example package —-image <image_uri>
Samhita Alla
Nada Saiyed
09/14/2022, 6:22 AMexecute()
. methodKevin Su
09/14/2022, 6:24 AMENV FLYTE_INTERNAL_IMAGE=<image_uri>
to the dockerfile like this.
and then you are able to retrieve it by using
def execute(self, **kwargs) -> Any:
image = self.container_image or os.getenv("FLYTE_INTERNAL_IMAGE")
Nada Saiyed
09/14/2022, 2:59 PMKevin Su
09/14/2022, 3:08 PMappend(r(taskContainer.GetEnv()), {FLYTE_INTERNAL_IMAGE: taskContainer.GetImage()})
Nada Saiyed
09/14/2022, 5:52 PManother way to achieve it is append an image_url to env by defaultthis would require change in the backend plugin? @Kevin Su
Kevin Su
09/15/2022, 4:14 AM