Total Batches shown for a job in the APex Jobs page is different from TotalJobItems value in AsyncApexJob query.
In the UI:
In the Query:
In the query result, TotalJobItems != JobItemsProcessed + NumberOfErrors
In the UI, Total Batches == Batches Processed + Failures
As per Salesforce documentation, TotalJobItems' label is Total Batches. So I don't think I'm comparing two different things.
Has anyone noticed such behavior before? Should I consider this as somehow 10 batches are not being processed?