protected function cancelAllJobs($group) { foreach (json_decode($this->client->failed($group, 0, 99), true)['jobs'] as $job) { $this->client->cancel($job); } return true; }