— I want to check within specific interval of time if count has increase print hello world
— Have you triend Change Streams option in mongodb
— Which is available in version 3.6 of mongo
—
from pymongo import MongoClient
db = MongoClient().dbname
cursor = db.collection.watch()
— Above like line code can be used for change stream
— To retrieve the data change event notifications, iterate the change stream cursor
— I want to do it using celery scheduler
— I just want celery scheduler to run my script and check if any new document is added in dB