We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c903d0 commit a190aebCopy full SHA for a190aeb
supabase/_async/client.py
@@ -195,6 +195,12 @@ def functions(self):
195
)
196
return self._functions
197
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
+
204
# async def remove_subscription_helper(resolve):
205
# try:
206
# await self._close_subscription(subscription)
0 commit comments