Skip to content

Commit

Permalink
Default retry_policy to None
Browse files Browse the repository at this point in the history
  • Loading branch information
rculbertson committed Oct 28, 2024
1 parent 68031e6 commit 128a718
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modal/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class _Function(typing.Generic[P, ReturnType, OriginalReturnType], _Object, type
_build_args: dict
_can_use_base_function: bool = False # whether we need to call FunctionBindParams
_is_generator: Optional[bool] = None
_retry_policy: Optional[api_pb2.FunctionRetryPolicy]
_retry_policy: Optional[api_pb2.FunctionRetryPolicy] = None

# when this is the method of a class/object function, invocation of this function
# should be using another function id and supply the method name in the FunctionInput:
Expand Down Expand Up @@ -524,6 +524,7 @@ def _deps():
fun._app = class_bound_method._app
fun._all_mounts = class_bound_method._all_mounts # TODO: only used for mount-watching/modal serve
fun._spec = class_bound_method._spec
fun._retry_policy = class_bound_method._retry_policy
return fun

@staticmethod
Expand Down

0 comments on commit 128a718

Please sign in to comment.