def fail_participant(self, participant):
participant_nodes = Node.query.filter_by(<EOL>participant_id=participant.id, failed=False<EOL>).all()<EOL>for node in participant_nodes:<EOL><INDENT>node.fail()<EOL><DEDENT>
Fail all the nodes of a participant.