Commit ba575746 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: serialise to prevent race conditon/conflicts on requesting

parent db2d4929
......@@ -28,6 +28,7 @@ else:
# Instance can be moved from one requester to another
# Prevent creating two instances with the same title
instance_tree.serialize()
tag = "%s_%s_inProgress" % (instance_tree.getUid(), software_title)
if (portal.portal_activities.countMessageWithTag(tag) > 0):
# 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