<#80 Add support PodTemplate override> Pull reques...
# flyte-github
c
#80 Add support PodTemplate override Pull request opened by pingsutw This pull request introduces enhancements to the Flyte task override functionality, allowing users to specify a custom name and Kubernetes pod template when overriding tasks. Additionally, the test suite is updated to validate these new features. Task override API improvements: • Added a
name
parameter to the
override
method in
TaskTemplate
, enabling users to set a custom task name during override. [1] [2] • Added a
pod_template
parameter to the
override
method, allowing users to pass a custom Kubernetes pod template (
PodTemplate
or YAML string) for more flexible task configuration. [1] [2] Test updates: • Updated
tests/user_api/test_override.py
to test overriding tasks with a custom name and pod template, ensuring correct assignment and behavior. [1] [2] Minor code style and import changes: • Reordered imports and made minor formatting adjustments in
examples/basics/hello_polyglot.py
for improved readability. • Simplified error message formatting in the
main
function of
examples/basics/hello_polyglot.py
. flyteorg/flyte-sdk