strong-soccer-41351
02/27/2025, 11:42 AM@task(
requests=Resources(cpu="50", mem="128Gi"),
limits=Resources(cpu="50", mem="128Gi"),
)
and when i launch it sets the cpu to 50
as desired, but memory is always at 38Gi
requested and 40Gi
limit
resources:
limits:
cpu: "50"
memory: 40Gi
requests:
cpu: "50"
memory: 32Gi
i already set the task_resource_defaults
in flyte-admin-base-config
which previously was not allowing me to exceed the limits
task_resource_defaults:
task_resources:
limits:
cpu: 50
memory: 128Gi
storage: 40Gi
ephemeral-storage: 100Gi
and im seeing that we do not have project quotas enabled
cluster_resource_manager:
enabled: false
i'm quite stumped as to why it's insisting on only giving me 40Gi memory even though the task specifies more and there's not quotas appliedgentle-tomato-480
02/27/2025, 12:19 PMtra
? https://docs.flyte.org/projects/flytectl/en/latest/gen/flytectl_get_task-resource-attribute.html And delete them if any are set?square-carpet-13590
02/27/2025, 12:19 PMstrong-soccer-41351
02/27/2025, 3:52 PMeshan@LUSQQHDH42MHC ~ % flytectl get task-resource-attribute -p navigation -d development
Error: attribute not found
{"json":{},"level":"error","msg":"attribute not found","ts":"2025-02-27T07:51:57-08:00"}
gentle-tomato-480
02/27/2025, 4:08 PMstrong-soccer-41351
02/27/2025, 4:10 PMtask-resource-attributes
? i would imagine within a single project/environment there be many many tasks with various resource configurations attachedgentle-tomato-480
02/27/2025, 4:13 PMflytectl get task-resource-attribute -p flytesnacks -d development core.control_flow.merge_sort.merge_sort
gentle-tomato-480
02/27/2025, 4:13 PMstrong-soccer-41351
02/27/2025, 4:17 PMstrong-soccer-41351
02/27/2025, 4:18 PM.with_overrides
map_task(
# pass multiple inputs to flyte map_task
functools.partial(
<task_name>,
inputs=inputs
),
concurrency=processing_concurrency,
metadata=TaskMetadata(
cache=True,
cache_version="1.0.3",
retries=NUM_RETRIES,
interruptible=False,
),
)(partition=partition).with_overrides(
requests=Resources(mem="32Gi"),
limits=Resources(mem="40Gi"),
)
gentle-tomato-480
02/27/2025, 4:18 PMgentle-tomato-480
02/27/2025, 4:18 PMgentle-tomato-480
02/27/2025, 4:18 PMstrong-soccer-41351
02/27/2025, 4:18 PMstrong-soccer-41351
02/27/2025, 4:18 PMaverage-finland-92144
02/27/2025, 4:59 PM