Hi, I came across `with_override` feature in <flyt...
# flytekit
m
Hi, I came across
with_override
feature in flytekit. The example demonstrate overriding task’s cpu & memory limits.
Copy code
@workflow
def my_pipeline(x: typing.List[int]) -> int:
    return square_1(x=count_unique_numbers_1(x=x)).with_overrides(
        limits=Resources(cpu="6", mem="500Mi")
    )
Can it be done by using workflow input. e.g.
Copy code
@workflow
def my_pipeline(x: typing.List[int], cpu: str, mem: str) -> int:
    return square_1(x=count_unique_numbers_1(x=x)).with_overrides(
        limits=Resources(cpu=cpu, mem=mem)
    )
?
g
Hey @most-gold-65483, we plan to support generic override resource, so most of the resource config can be overridden at execution time Just like overriding role and service account. Here is an example
🙏 2
m
Oh ok, I thought the word
dynamically
here refers to execution overrides. Thanks for clarifying!
f
You can do it in a dynamic workflows
r
We’d love the functionality described above as well! (also described in the feature request)!
f
Please help with specing it out
153 Views