Skip to content

Commit 75c0b6a

Browse files
authored
Exporter: remove modifiedAt != 0 check in the incremental mode (#2736)
1 parent 9543c96 commit 75c0b6a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

exporter/importables.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ var resourcesMap map[string]importable = map[string]importable{
10451045
updatedSinceMs := ic.getUpdatedSinceMs()
10461046
for offset, gis := range globalInitScripts {
10471047
modifiedAt := gis.UpdatedAt
1048-
if ic.incremental && modifiedAt != 0 && modifiedAt < updatedSinceMs {
1048+
if ic.incremental && modifiedAt < updatedSinceMs {
10491049
log.Printf("[DEBUG] skipping global init script '%s' that was modified at %d (last active=%d)",
10501050
gis.Name, modifiedAt, updatedSinceMs)
10511051
continue
@@ -1214,7 +1214,7 @@ var resourcesMap map[string]importable = map[string]importable{
12141214
updatedSinceMs := ic.getUpdatedSinceMs()
12151215
for offset, ipList := range ipLists {
12161216
modifiedAt := ipList.UpdatedAt
1217-
if ic.incremental && modifiedAt != 0 && modifiedAt < updatedSinceMs {
1217+
if ic.incremental && modifiedAt < updatedSinceMs {
12181218
log.Printf("[DEBUG] skipping IP access list '%s' that was modified at %d (last active=%d)",
12191219
ipList.Label, modifiedAt, updatedSinceMs)
12201220
continue
@@ -1719,7 +1719,7 @@ var resourcesMap map[string]importable = map[string]importable{
17191719
return err
17201720
}
17211721
modifiedAt := pipeline.LastModified
1722-
if modifiedAt != 0 && modifiedAt < updatedSinceMs {
1722+
if modifiedAt < updatedSinceMs {
17231723
log.Printf("[DEBUG] skipping DLT Pipeline '%s' that was modified at %d (last active=%d)",
17241724
pipeline.Name, modifiedAt, updatedSinceMs)
17251725
continue
@@ -1887,7 +1887,7 @@ var resourcesMap map[string]importable = map[string]importable{
18871887
updatedSinceMs := ic.getUpdatedSinceMs()
18881888
for offset, endpoint := range endpointsList {
18891889
modifiedAt := endpoint.LastUpdatedTimestamp
1890-
if ic.incremental && modifiedAt != 0 && modifiedAt < updatedSinceMs {
1890+
if ic.incremental && modifiedAt < updatedSinceMs {
18911891
log.Printf("[DEBUG] skipping serving endpoint '%s' that was modified at %d (last active=%d)",
18921892
endpoint.Name, modifiedAt, updatedSinceMs)
18931893
continue
@@ -1940,7 +1940,7 @@ var resourcesMap map[string]importable = map[string]importable{
19401940
updatedSinceMs := ic.getUpdatedSinceMs()
19411941
for offset, webhook := range webhooks {
19421942
modifiedAt := webhook.LastUpdatedTimestamp
1943-
if ic.incremental && modifiedAt != 0 && modifiedAt < updatedSinceMs {
1943+
if ic.incremental && modifiedAt < updatedSinceMs {
19441944
log.Printf("[DEBUG] skipping MLflow webhook '%s' that was modified at %d (last active=%d)",
19451945
webhook.Id, modifiedAt, updatedSinceMs)
19461946
continue

exporter/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ func createListWorkspaceObjectsFunc(objType string, resourceType string, objName
630630
continue
631631
}
632632
modifiedAt := wsObjectGetModifiedAt(object)
633-
if ic.incremental && modifiedAt != 0 && modifiedAt < updatedSinceMs {
633+
if ic.incremental && modifiedAt < updatedSinceMs {
634634
log.Printf("[DEBUG] skipping '%s' that was modified at %d (last active=%d)", object.Path,
635635
modifiedAt, updatedSinceMs)
636636
continue

0 commit comments

Comments
 (0)