When I try to use `with_overrides(pod_template_na...
# ask-the-community
t
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
@Tommy Nam, with_overrides is about overriding resources, not all properties of tasks.
t
@Eduardo Apolinario (eapolinario) @Kevin Su Gotcha, thank you for the reply
169 Views