def del_job(job):
    """
    Function to delete a job. Used to spawn a thread
    and wait for jobs to cleanup hashcat proc
    """
    time.sleep(22)
    logger.debug('Thread: deleting job')
    job.delete()
    del_jobid(job.id)

    Function to delete a job. Used to spawn a thread
    and wait for jobs to cleanup hashcat proc
    
crackq/cq_api.py