May I know, when a batch job fails, what’s the status of it? (BatchJob.run.status) does it show as “completed” since there is no status of “failed” in the enum type or does it continue to show “failing”
var job = BatchJob.get(); job.status().hasErrors() ;
should tell you if the job has errors. I think status is still completed.
you could also do
to check for errors and report regarding the current batch jobs.
It remains in “failing”