Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
added TIMED_OUT and TERMINATED workflows to archivable
Browse files Browse the repository at this point in the history
  • Loading branch information
apanicker-nflx committed Feb 14, 2019
1 parent e169684 commit 3de894b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@ public List<String> searchArchivableWorkflows(String indexName, long archiveTtlD
QueryBuilder q = QueryBuilders.boolQuery()
.should(QueryBuilders.termQuery("status", "COMPLETED"))
.should(QueryBuilders.termQuery("status", "FAILED"))
.should(QueryBuilders.termQuery("status", "TIMED_OUT"))
.should(QueryBuilders.termQuery("status", "TERMINATED"))
.mustNot(QueryBuilders.existsQuery("archived"))
.minimumNumberShouldMatch(1);
SearchRequestBuilder s = elasticSearchClient.prepareSearch(indexName)
Expand Down

0 comments on commit 3de894b

Please sign in to comment.