File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/main/java/org/commonwl/view/workflow Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 4
4
import org .springframework .data .mongodb .repository .Query ;
5
5
import org .springframework .data .repository .PagingAndSortingRepository ;
6
6
7
+ import java .util .Date ;
8
+ import java .util .List ;
9
+
7
10
/**
8
11
* Stores workflows in the queue waiting for cwltool
9
12
*/
@@ -24,4 +27,20 @@ public interface QueuedWorkflowRepository extends PagingAndSortingRepository<Que
24
27
@ Query ("{tempRepresentation.retrievedFrom: ?0}" )
25
28
void deleteByRetrievedFrom (GitDetails retrievedFrom );
26
29
30
+ /**
31
+ * Deletes all queued workflows with date retrieved on older or equal to the Date argument passed.
32
+ * @param retrievedOn Date of when the queued workflow was retrieved
33
+ * @return The number of queued workflows deleted
34
+ */
35
+ Long deleteByTempRepresentation_RetrievedOnLessThanEqual (Date retrievedOn );
36
+
37
+
38
+ /**
39
+ * Finds and returns all queued workflows with date retrieved on older or equal to the Date argument passed.
40
+ * @param retrievedOn Details of where the queued workflow is from
41
+ * @return A list of queued workflows
42
+ */
43
+ List <QueuedWorkflow > findByTempRepresentation_RetrievedOnLessThanEqual (Date retrievedOn );
44
+
45
+
27
46
}
You can’t perform that action at this time.
0 commit comments