How do you know if the batch job completed successfully (API)?

How do you know if the batch job completed successfully?
If I query for job status it is always dead, when all allocations finish. It does not matter if the final status of allocation was success or failure.