HF RL Explorer

Task: Fix PyMongo CursorNotFound Error in MongoDB Query Script

Task: Fix PyMongo CursorNotFound Error in MongoDB Query Script: a task in Terminal-Lego-15k (Harbor dataset). When iterating over large result sets in MongoDB using PyMongo, you may encounter a pymongo.errors.CursorNotFound error. This happens because MongoDB server cursors have a default timeout…

The task

When iterating over large result sets in MongoDB using PyMongo, you may encounter a `pymongo.errors.CursorNotFound` error. This happens because MongoDB server cursors have a default timeout of 10 minutes. If your processing takes longer than this timeout between fetches, the cursor becomes invalid.

Part of PrimeIntellect/Terminal-Lego-15k.