Common Issues
Function Timeout
If your function is timing out, consider:- Increase the timeout - Set a higher
timeoutvalue in your@functiondecorator - Report progress - Use
ctx.progress.update()to reset the timeout. See Streaming Progress Updates - Check the logs - Use the Logs API above to see what your function was doing before it timed out
Request Failed
To investigate a failed request:- Check request state - Get the full request state including failure reason:
- Review logs - Filter logs by the request ID to see what happened:
Out of Memory
If your function is running out of memory:- Check current allocation - Review the
memorysetting in your@functiondecorator - Increase memory - Set
memoryto a higher value (up to 32 GB). See Memory - Process in batches - Break large datasets into smaller chunks
Debugging Tips
- Add
print()statements in your code to log intermediate values - Use
ctx.request_idto correlate logs across function calls. See Request ID - Check that your function has sufficient CPU, memory, and disk resources
- Review retry settings if functions are failing intermittently. See Retries