| 321 | print("error::startPoress::>>", sys.exc_info()[1]) |
| 322 | |
| 323 | def deletProcess(self, user, tags, productId): |
| 324 | mon = pymongo.MongoClient(host=config.host, port=config.mongoPort) |
| 325 | try: |
| 326 | db = mon["insta_process"] |
| 327 | collection = db["process"] |
| 328 | temp = {} |
| 329 | temp["user"] = user |
| 330 | temp["tags"] = tags |
| 331 | temp["productId"] = productId |
| 332 | collection.delete_one(temp) |
| 333 | except Exception as err: |
| 334 | print(f"exception : {err}\n") |
| 335 | print("error::deletProcess:>>", sys.exc_info()[1]) |
| 336 | finally: |
| 337 | mon.close() |
| 338 | print("deleted - task", temp) |
| 339 | return True |
| 340 | |
| 341 | def statusCheck(self, user, tags, productId): |
| 342 | mon = pymongo.MongoClient(host=config.host, port=config.mongoPort) |