def delete_task_from_mem(task_id):
 logging.info("Deleting task '{0}' from memory.".format(task_id))
 TASK_STATUS_LOCK.acquire(True)
 if (task_id in TASK_STATUS.keys()):
  del TASK_STATUS[task_id]
 TASK_STATUS_LOCK.release()

def delete_task_from_mem ( task_id ) : logging . info ( "Deleting task '{0}' from memory." . format ( task_id ) ) TASK_STATUS_LOCK . acquire ( True ) if ( task_id in TASK_STATUS . keys ( ) ) : del TASK_STATUS [ task_id ] TASK_STATUS_LOCK . release ( )
deletes a task and its status from memory .