'Removes pid of process from cache.
This method will remove the pid of a process from the cache.
:param instance: Object of instance
:param pid: Id of the process'

def remove_job(self, instance, pid):

    uuid = instance.uuid
    if ((uuid in self.jobs) and (pid in self.jobs[uuid])):
        self.jobs[uuid].remove(pid)
    if (not self.jobs[uuid]):
        self.jobs.pop(uuid, None)
