Skip to content

Commit

Permalink
fix: include refreshes in early syncs query (#13852)
Browse files Browse the repository at this point in the history
  • Loading branch information
malikdiarra committed Sep 6, 2024
1 parent d378e75 commit e6ade26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ private Set<Long> getEarlySyncJobsFromResult(final Result<Record> result) {
// Consider only jobs that are in a generally accepted terminal status
// io/airbyte/persistence/job/models/JobStatus.java:23
+ " WHERE j.status IN ('succeeded', 'cancelled', 'failed')"
+ " AND j.config_type = 'sync'"
+ " AND j.config_type IN ('sync', 'refresh')"
+ " AND c.id IS NOT NULL"
// Keep a job if it was created within 7 days of its connection's creation,
// OR if it was the first successful sync job of its connection
Expand Down

0 comments on commit e6ade26

Please sign in to comment.