Skip to content

Commit 3c903d0

Browse files
juancarlospacosilentworks
authored andcommitted
Fix #814
1 parent 7201089 commit 3c903d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

supabase/_sync/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ def functions(self):
195195
)
196196
return self._functions
197197

198+
def functionTimeout(self, timeout: int):
199+
"""Set function timeout"""
200+
if self._functions:
201+
assert timeout > 0, "Timeout must be positive." # No negative timeout.
202+
self._functions._client.timeout = min(int(timeout), 150) # >150 returns HTTP-504.
203+
198204
# async def remove_subscription_helper(resolve):
199205
# try:
200206
# await self._close_subscription(subscription)

0 commit comments

Comments
 (0)