File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -3037,18 +3037,17 @@ def _get_or_create_artifact_for_name(
30373037
30383038 if artifact is None :
30393039 try :
3040- with session .begin_nested ():
3041- artifact_request = ArtifactRequest (
3042- name = name ,
3043- project = project_id ,
3044- has_custom_name = has_custom_name ,
3045- )
3046- self ._set_request_user_id (
3047- request_model = artifact_request , session = session
3048- )
3049- artifact = ArtifactSchema .from_request (artifact_request )
3050- session .add (artifact )
3051- session .commit ()
3040+ artifact_request = ArtifactRequest (
3041+ name = name ,
3042+ project = project_id ,
3043+ has_custom_name = has_custom_name ,
3044+ )
3045+ self ._set_request_user_id (
3046+ request_model = artifact_request , session = session
3047+ )
3048+ artifact = ArtifactSchema .from_request (artifact_request )
3049+ session .add (artifact )
3050+ session .commit ()
30523051 session .refresh (artifact )
30533052 except IntegrityError :
30543053 # We have to rollback the failed session first in order to
@@ -3218,6 +3217,7 @@ def create_artifact_version(
32183217 artifact_version_id = artifact_version_schema .id ,
32193218 )
32203219 session .add (vis_schema )
3220+ session .commit ()
32213221
32223222 # Save tags of the artifact
32233223 self ._attach_tags_to_resources (
You can’t perform that action at this time.
0 commit comments