#236 Introduce parent_env_name which is pickable
Pull request opened by wild-endeavor
The move to using tasks' environment name as the lookup key in the image cache, introduced by #211, doesn't work for pickled tasks, because that field is removed during the pickle process. This leads to the "Task template has no parent environment" error.
This adds a string field that should always be present for correct lookup.
flyteorg/flyte-sdk