list = $list; $this->data = $data; } /** * Execute the job. * * @return void */ public function handle(Redis $redis) { // sleep for 10 seconds, just as example sleep(10); $redis->lpush($this->list, sprintf( $this->data['format'], $this->data['task'] )); } /** * Handle a job failure. * * @return void */ public function failed() { // Called when the job is failing... } }