Status of batchjob after failing

#1

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”

0 Likes

#2
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

c3QErrs(BatchQueue) 
c3QReport(BatchQueue)

to check for errors and report regarding the current batch jobs.

0 Likes

#3

It remains in “failing”

1 Like