Skip to content

Commit

Permalink
Updated to curr v of req resources
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarMarathon committed Oct 4, 2023
1 parent 16cee4d commit 941953e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/flytekit/unit/core/test_map_task.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import functools
import typing
from collections import OrderedDict
from flytekit.core.resources import Resources

import pytest

Expand Down Expand Up @@ -53,7 +54,7 @@ def my_mappable_task(a: int) -> typing.Optional[str]:
def my_wf(x: typing.List[int]) -> typing.List[typing.Optional[str]]:
return map_task(my_mappable_task, metadata=TaskMetadata(retries=1), concurrency=10, min_success_ratio=0.75,)(
a=x
).with_overrides(cpu="10M")
).with_overrides(requests=Resources(cpu="10M"))

# test_map_task_end

Expand Down

0 comments on commit 941953e

Please sign in to comment.