Cleans up failed or old batches.
Overrides BatchStorageInterface::cleanup
public function cleanup() {
// Cleanup the batch table and the queue for failed batches.
$this->connection
->delete('batch')
->condition('timestamp', REQUEST_TIME - 864000, '<')
->execute();
}