def del_check(job):
    """
    Check if job is marked for delete/stop
    """
    try:
        #logger.debug('Checking for Stop/Delete notification')
        if any(s in job.meta['CrackQ State'] for s in ['Stop',
                                                       'Delete']):
            return True
    except KeyError:
        logger.debug('Del check failed, no CrackQ state')
    return False

    Check if job is marked for delete/stop
    
crackq/run_hashcat.py