ancient-wolf-19325
08/01/2024, 10:03 PM*AttributeError:* 'ReferenceTask' object has no attribute '_container_image'
# Answer
The error you're encountering, AttributeError: 'ReferenceTask' object has no attribute '_container_image', suggests that the ReferenceTask does not support the container_image attribute. This is not explicitly mentioned in the documentation.
To address this, you can use the with_overrides method to specify the container image for the task. However, there are known issues with with_overrides in certain versions of Flytekit, particularly version 1.11.0, where container image overrides may not work as expected (source).
Would you like more details on how to implement a workaround using dynamic tasks or other methods to handle container image overrides?
Sources:
- https://github.com/flyteorg/flyte/issues/5297
Slack Link
https://flyte-org.slack.com/archives/CP2HDHKE1/p1722549808.159589 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.