@app.route("<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>@db.scoped_session_decorator<EOL>def worker_complete():
participant_id = request.args.get("<STR_LIT>")<EOL>if not participant_id:<EOL><INDENT>return error_response(<EOL>error_type="<STR_LIT>", error_text="<STR_LIT>"<EOL>)<EOL><DEDENT>try:<EOL><INDENT>_worker_complete(participant_id)<EOL><DEDENT>except KeyError:<EOL><INDENT>return error_response(<EOL>error_type="<STR_LIT>".format(participant_id)<EOL>)<EOL><DEDENT>return success_response(status="<STR_LIT:success>")<EOL>
Complete worker.