Mongodb – time.sleep(300) not allowing script to stop thread | python |
I am writing a code to insert data to mongodb every 5 minutes ON and OFF The problem here is on keyword interrupt my thread should be stop and exit the code execution Once first record is inserted to DB…