File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ def trigger_pandda_xchem(
438438 return {"success" : True }
439439
440440 # Stop-gap, interval > max checkpoint time
441- min_start_time = datetime .now () - timedelta (hours = 3 )
441+ min_start_time = datetime .now () - timedelta (minutes = 30 )
442442
443443 query = (
444444 (
@@ -729,28 +729,6 @@ def trigger_pandda_xchem(
729729 with open (compound_dir / f"{ CompoundCode } .smiles" , "w" ) as smi_file :
730730 smi_file .write (CompoundSMILES )
731731
732- # Check if Pipedream job was recently launched
733- min_start_time = datetime .now () - timedelta (hours = 3 )
734-
735- query = (
736- (
737- session .query (AutoProcProgram , ProcessingJob .dataCollectionId ).join (
738- ProcessingJob ,
739- ProcessingJob .processingJobId == AutoProcProgram .processingJobId ,
740- )
741- )
742- .filter (ProcessingJob .dataCollectionId == dcid )
743- .filter (ProcessingJob .automatic == True ) # noqa E711
744- .filter (AutoProcProgram .processingPrograms .in_ (["Pipedream" ]))
745- .filter (AutoProcProgram .recordTimeStamp > min_start_time )
746- )
747-
748- if triggered_processing_job := query .first ():
749- self .log .info (
750- f"Pipedream job recently launched for dcid { dcid } , skipping pipedream trigger"
751- )
752- pipedream = False
753-
754732 # Create seperate pipedream directory
755733 if pipedream :
756734 pipedream_dir = analysis_dir / "pipedream"
You can’t perform that action at this time.
0 commit comments