OCI Functions: Timeout implementing Long-Running Tasks in Python SDK
I'm upgrading from an older version and I've spent hours debugging this and This might be a silly question, but Quick question that's been bugging me - I tried several approaches but none seem to work..... I'm relatively new to this, so bear with me. I'm having trouble with OCI Functions when attempting to execute a long-running task. The function is supposed to process a batch of records from OCI Object Storage, but I keep hitting a timeout behavior. I've set the function's maximum duration to 900 seconds in the configuration, yet it seems to time out after only 300 seconds. Here's the relevant part of my function code: ```python import oci import time def handler(ctx, data: str = None): # Simulate processing each record in a batch for record in range(100): time.sleep(3) # Simulating a long operation return 'Processing complete' ``` I have verified that the function is indeed configured for a longer duration in the OCI Console. However, when I invoke the function, I see this behavior in the logs: ``` behavior: Task timed out after 300 seconds ``` I've also tried increasing the timeout setting directly in the OCI CLI using: ```bash oci functions function update --function-id <function_id> --max-duration 900 ``` But the scenario continues. Is there something specific Iām missing in the configuration? How can I successfully run a long task without it timing out? Any insight would be appreciated! Is there a better approach? What am I doing wrong? My development environment is Windows. What's the best practice here? The stack includes Python and several other technologies. I'm coming from a different tech stack and learning Python. Thanks for taking the time to read this! Thanks for your help in advance! This is part of a larger desktop app I'm building. What am I doing wrong?