'Attempts to delete a dispatched executing Job in GoDocker'

def stop_job(self, job):

    'This    function    is    called    by    fail_job()\n                                            where    param    job    =    self.sa_session.query(    self.app.model.Job    ).get(    job_state.job_wrapper.job_id    )\n                                            No    Return    data    expected\n                                '
    log.debug(('STOP    JOB    EXECUTION    OF    JOB    ID:    ' + str(job.id)))
    job_status_god = self.get_task_status(job.id)
    if (job_status_god['status']['primary'] != 'over'):
        self.delete_task(job.id)
    return None
