This repository was archived by the owner on Jul 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
tgt_grease/management/Model Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 44
55setup (
66 name = 'tgt_grease' ,
7- version = '2.4.0 ' ,
7+ version = '2.4.1 ' ,
88 license = "MIT" ,
99 description = 'Modern distributed automation engine built with love by Target' ,
1010 long_description = """
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ def rescheduleDetectJobs(self, serverId):
281281 'grease_data.detection.end' : None
282282 }
283283 ):
284+ self .ioc .getCollection ('SourceData' ).delete_one ({'_id' : ObjectId (job .get ('_id' ))})
284285 job = dict (job )
285286 if not self .centralScheduler .scheduleDetection (job .get ('source' ), job .get ('configuration' ), [job ]):
286287 retval = False
@@ -396,6 +397,7 @@ def schedule_detection_orphans(self):
396397 'grease_data.detection.end' : None
397398 }
398399 ):
400+ self .ioc .getCollection ('SourceData' ).delete_one ({'_id' : ObjectId (orphan .get ('_id' ))})
399401 if self .centralScheduler .scheduleDetection (orphan .get ('source' ), orphan .get ('configuration' ), [orphan ]):
400402 self .ioc .getLogger ().info (
401403 "Rescheduled orphan detection record: [{}]" .format (orphan ), verbose = True )
You can’t perform that action at this time.
0 commit comments