Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
benmoriceau committed Oct 11, 2023
1 parent aa431a7 commit 850db67
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ private SerializedAirbyteMessageConsumer getStandardRecordConsumer(final BigQuer
},
(hasFailed) -> {
try {
Thread.sleep(30 * 1000);
typerDeduper.typeAndDedupe();
typerDeduper.commitFinalTables();
typerDeduper.cleanup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void close(boolean hasFailed) throws IOException {
this.writeChannel.close();
try {
Job job = writeChannel.getJob();
while (JobStatus.State.DONE.equals(writeChannel.getJob().getStatus())) {
while (!JobStatus.State.DONE.equals(writeChannel.getJob().getStatus())) {
Thread.sleep(1000L);
job = job.reload();
}
Expand Down

0 comments on commit 850db67

Please sign in to comment.