Skip to content

Commit

Permalink
Dagster Fixes: Load job out of order (#1460)
Browse files Browse the repository at this point in the history
Fix load and pointer update are out of order
  • Loading branch information
ravenac95 authored May 21, 2024
1 parent 9af3b9b commit 4d342a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions warehouse/oso_dagster/goldsky.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,13 @@ def commit_pointer(
job_config=job_config,
timeout=self.config.load_table_timeout_seconds,
)
self.update_pointer_table(client, context, checkpoint, pointer_table_mutex)
context.log.debug("updated pointer table")
load_job.result()
context.log.info(f"Worker[{self.name}] Data loaded into bigquery")

self.update_pointer_table(client, context, checkpoint, pointer_table_mutex)
context.log.info(
f"Worker[{self.name}] Pointer table updated to {checkpoint.worker_checkpoint}"
)

def run_load_bigquery_load(
self,
Expand Down

0 comments on commit 4d342a4

Please sign in to comment.