add JobBatch#in_terminal_state?