cuddly-jelly-27016
05/31/2025, 12:10 AMfrom flytekit import task, Resources, workflow
@task(
requests=Resources(
cpu="2",
mem="2Gi",
),
)
def foo():
print('task')
@workflow
def my_wf():
foo()
foo().with_overrides(
requests=Resources(
cpu="1",
mem="1Gi",
),
)
Notice how in the second execution of foo we override requests.
Currently the Task details view for the second task displays the original requests value.
### Goal: What should the final outcome look like, ideally?
The Task Details view should be aware of resource overrides so as not to confuse users, since not having them there gives the false impression that those are not being applied, when in reality they are.
### Propose: Link/Inline OR Additional context
The Task Details view for a given task execution should introspect the workflow closure to find which resources are being overridden (if any) and apply that transformation before rendering them.
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flyte