<#4691 Add support passing integer to flytekit.res...
# flytekit
a
#4691 Add support passing integer to flytekit.resource Issue created by pingsutw Motivation: Why do you think this is important? For now, we can only pass a string to the
Resource
. it will be better to support passing an integer to
Resource
Copy code
@task(
    requests=Resources(cpu="1", mem="1Gi"),
    limits=Resources(cpu="2", mem="4Gi"),
    container_image=image_spec,
    environment={"KEY": "value"},
)
Goal: What should the final outcome look like, ideally? passing integers to
Resource
Copy code
@task(
    requests=Resources(cpu=1, mem=1024, gpu=3),
    limits=Resources(cpu=2, mem=4096, gpu=2),
    container_image=image_spec,
    environment={"KEY": "value"},
)
Describe alternatives you've considered NA Propose: Link/Inline OR Additional context No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte