def _set_tag(): request_message = _get_request_message(SetTag()) tag = RunTag(request_message.key, request_message.value) _get_store().set_tag(request_message.run_uuid, tag) response_message = SetTag.Response() response = Response(mimetype='application/json') response.set_data(message_to_json(response_message)) return response
def _set_tag(): request_message = _get_request_message(SetTag()) tag = RunTag(request_message.key, request_message.value) run_id = request_message.run_id or request_message.run_uuid run = _get_tracking_store().get_run(run_id) run_auth_check(run) _get_tracking_store().set_tag(run_id, tag) response_message = SetTag.Response() response = Response(mimetype="application/json") response.set_data(message_to_json(response_message)) return response