If a run takes more than 10 minutes, OpenAI seems to automatically cancel the run. Anyone run into this? Any way to fix? How can we handle complex requests?
More details: I have a loop that constantly retrieves the run (openai.beta.threads.runs.retrieve), and:
If the run’s status is ‘queued’ or ‘in_progress’: sleep 1 second
If the run’s status is ‘requires_action’: handle the tool outputs
If the run’s status is ‘completed’: we’re good to go! (It usually completes within a few minutes.)
Whenever this loop takes longer than 10 mins, the run’s status goes to ‘canceled.’
Just lots of API calls on hundreds of different objects at a time…for customers that have lots of data…and the whole benefit to them is they can do things en masse. So it’s kind of the point
Hmm, I’m doing something similar with my service! Merch Masters Bot Do the all API calls are necessary? like wouldn’t be great we you filter out only the needed once?