public function submit($job)
    {
        $this->delete($job['id']);

        if (!empty($job['log']['errors'])) {
            file_put_contents($job['log']['errors'], '');
        }

        $this->set($job);
        $this->url->redirect('', array('job_id' => $job['id']));
    }