https://flyte.org logo
#ask-the-community
Title
# ask-the-community
t

Tommy Nam

05/25/2023, 7:50 AM
When I try to use
with_overrides(pod_template_name="string")
on a NotebookTask, it appears that it doesn't do anything. Is this a Papermill/NotebookTask issue or have I perhaps specified it incorrectly? Setting the
pod_template_name="string
parameter directly on the NotebookTask definition itself works, but not with
with_overrides
. Basically, this works:
Copy code
nb = NotebookTask(
    pod_template_name="random template name",
)

@dynamic
def function():
    return nb

# No problem
But overriding doesn't work within a dynamic workflow:
Copy code
@dynamic()
def dynamic_workflow() -> List[float]:

    task_output = nb().with_overrides(
        pod_template_name="string to override"
    )

    return task_output

# Pod template name isn't overriden
e

Eduardo Apolinario (eapolinario)

05/25/2023, 5:32 PM
@Tommy Nam, with_overrides is about overriding resources, not all properties of tasks.
t

Tommy Nam

05/26/2023, 2:04 AM
@Eduardo Apolinario (eapolinario) @Kevin Su Gotcha, thank you for the reply
82 Views