Commit 2e7e0867 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: serialise to prevent race conditon/conflicts on requesting

See merge request !460
parents bf4ff97a ba575746
Pipeline #25317 failed with stage
in 0 seconds
...@@ -28,6 +28,7 @@ else: ...@@ -28,6 +28,7 @@ else:
# Instance can be moved from one requester to another # Instance can be moved from one requester to another
# Prevent creating two instances with the same title # Prevent creating two instances with the same title
instance_tree.serialize()
tag = "%s_%s_inProgress" % (instance_tree.getUid(), software_title) tag = "%s_%s_inProgress" % (instance_tree.getUid(), software_title)
if (portal.portal_activities.countMessageWithTag(tag) > 0): if (portal.portal_activities.countMessageWithTag(tag) > 0):
# The software instance is already under creation but can not be fetched from catalog # The software instance is already under creation but can not be fetched from catalog
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment