CodexBloom - Programming Q&A Platform

OCI Function Invocation scenarios with 'Task timed out after 60 seconds' scenarios

๐Ÿ‘€ Views: 15 ๐Ÿ’ฌ Answers: 1 ๐Ÿ“… Created: 2025-06-07
oci functions timeout Python

I'm trying to debug I'm running an OCI Function written in Python 3.8, and I've set the timeout to 60 seconds in the console. However, when I try to invoke the function, I keep working with a 'Task timed out after 60 seconds' behavior even when the function should complete in under that time. I've added logging to track the execution time, and it consistently finishes around 55 seconds. Hereโ€™s a snippet of my function code: ```python import time def handler(ctx, param): # Simulate a long-running process time.sleep(55) return 'Process Completed' ``` I've also attempted to increase the timeout in the OCI console to 90 seconds, but I still face the same scenario. I verified that the deployment was updated after changing the timeout setting. I tried running the function locally using the `fn` CLI tool, and it executes without timeout. I also checked the log output in the OCI console, but it doesnโ€™t provide additional insights. Is there a configuration that I might be missing, or is there a known scenario with OCI Functions regarding timeout settings? Any help would be greatly appreciated! I'm working with Python in a Docker container on Windows 11. Any advice would be much appreciated.