def save_unmet(self, job):
msg_id = job.msg_id<EOL>self.depending[msg_id] = job<EOL>for dep_id in job.after.union(job.follow).difference(self.all_done):<EOL><INDENT>if dep_id not in self.graph:<EOL><INDENT>self.graph[dep_id] = set()<EOL><DEDENT>self.graph[dep_id].add(msg_id)<EOL><DEDENT>
Save a message for later submission when its dependencies are met.