@oslo_db_api.wrap_db_retry(max_retries=5, retry_on_deadlock=True)
@pick_context_manager_writer
def compute_node_update(context, compute_id, values):
 compute_ref = compute_node_get_model(context, compute_id)
 values['updated_at'] = timeutils.utcnow()
 convert_objects_related_datetimes(values)
 compute_ref.update(values)
 return compute_ref

@ oslo_db_api . wrap_db_retry ( max_retries = 5 , retry_on_deadlock = True ) @ pick_context_manager_writer def compute_node_update ( context , compute_id , values ) : compute_ref = compute_node_get_model ( context , compute_id ) values [ 'updated_at' ] = timeutils . utcnow ( ) convert_objects_related_datetimes ( values ) compute_ref . update ( values ) return compute_ref
updates the computenode record with the most recent data .