Back to changelog

Job Status Now Estimates When Your Files Will Be Searchable

Get Job Status now estimates how long a running job has left, from a model trained on production indexing jobs.

  • estimated_time_remaining_seconds is a real estimate. Before, it was the number of files left times 5 seconds. Now it is the typical time left for a job like yours, given the file types, the processing mode and how busy indexing is.
  • New eta block. While a job runs, eta.remaining_seconds gives a typical value and two upper bounds: p90 (nine in ten similar jobs finish within it) and p99. eta.estimated_completion gives the matching times.
  • eta.display says which number to show. typical means the typical value is reliable for this kind of job. upper_bound means show only a bound, such as "ready within 4 minutes". PDFs, images and media from a new account get upper_bound.
  • The estimate updates as the job runs. A job that is taking longer than usual gets a new, longer estimate rather than a countdown past zero.

Do I need to change anything?

  • No. estimated_time_remaining_seconds keeps its type. eta is null when no estimate is available: once the job has finished, or for a whole bucket whose file types are not known yet. Check for null before reading it.