GetAnalyticsConversationsDetailsJob question

In my code I initiate an async conversation details query and use GetAnalyticsConversationsDetailsJob to check on the status of the job. I'm doing that in a loop where I check if the status is fullfilled or not (among other statuses). I want to put some sort of a limit on the loop to stop checking if the job is not fullfilled after some point.

I'm looking for some insight on how long a job request can take and/or when my loop should just give up and move on.

Thanks.

There's no definitive maximum amount of time a job will take. The duration to produce results is a function of the complexity of your query, the number of conversations that must be searched, and may be impacted by overall system load at the time. The best guidance I can give you on expected runtimes is to measure the duration to completion of the jobs you've been running and take an average (for the same query, different queries will produce different results).

The best practice is to do what you're doing and handle all of the values that may be returned by state. All jobs will eventually enter a state other than queued and pending; if they don't, please open a case with Genesys Cloud Care to investigate a stuck job.

Thanks Tim. Pretty much what I expected in terms no definitive amount. Had to be sure though.

Regards.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.