I am passing a dictionary of the form
{'twitterid':121212, 'followers':[121,212323,2323,1221]}
to the function createVertex
def createVertex(userDict):
vertex = g.vertices.create(twitterid=userDict['twitterid'])
g.vertices.update(vertex.eid, userDict)
while not 'followers' in list(vertex.data().iterkeys()):
print "trying " + str(vertex.twitterid)
return vertex
It gets stuck in while loop. I suspect there is a "commit" issue in update or a race issue. Can someone advise how to fix this problem?
Thanks