Yeah, i tried calling stop from same method using flag …as below:
with collection.watch() as stream:
for change in stream:
if (status == ‘stop’)
break
But once change stream started watching changes, it keep on watching. status variable doesn’t set the value as ’ stop’ externally
Please advise