I’m connected to a DB and I don’t have access to the admin db so I can’t run db.currentOp… Is there a way to get all the operations currently running under my username ?
The operations are run from a python script. Is there a way to get the opId of a given cursor (usually aggregate) while running it ?
cursor = db.coll.aggregate([{....}])
opid = cursor.get_opId() ?????
for record in cursor:
...
user have R+W access to the db where the data are, nothing on any other db.
Documentation is about calling currentOp on mongod. I’m running a sharded db so I don’t know anything about mongod, only mongos. I need a consolidated view of the operations running under my username.