def complete_experiment(self, status):
self.log("<STR_LIT>".format(status))<EOL>while True:<EOL><INDENT>url = "<STR_LIT>".format(<EOL>host=self.host, participant_id=self.participant_id, status=status<EOL>)<EOL>try:<EOL><INDENT>result = requests.get(url)<EOL>result.raise_for_status()<EOL><DEDENT>except RequestException:<EOL><INDENT>self.stochastic_sleep()<EOL>continue<EOL><DEDENT>return result<EOL><DEDENT>
Record worker completion status to the experiment server.

        This is done using a GET request to the /worker_complete
        or /worker_failed endpoints.