File tree Expand file tree Collapse file tree
core/src/main/java/feast/core/job Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717package feast .core .job ;
1818
1919import com .google .common .collect .Sets ;
20- import feast .core .FeatureSetProto .FeatureSetStatus ;
2120import feast .core .log .Action ;
2221import feast .core .log .AuditLogger ;
2322import feast .core .log .Resource ;
@@ -103,17 +102,7 @@ public Job call() {
103102
104103 boolean requiresUpdate (Job job ) {
105104 // If set of feature sets has changed
106- if (!Sets .newHashSet (featureSets ).equals (Sets .newHashSet (job .getFeatureSets ()))) {
107- return true ;
108- }
109-
110- // If any existing feature set populated by the job has its status as pending
111- for (FeatureSet featureSet : job .getFeatureSets ()) {
112- if (featureSet .getStatus ().equals (FeatureSetStatus .STATUS_PENDING )) {
113- return true ;
114- }
115- }
116- return false ;
105+ return !Sets .newHashSet (featureSets ).equals (Sets .newHashSet (job .getFeatureSets ()));
117106 }
118107
119108 private Job createJob () {
You can’t perform that action at this time.
0 commit comments