Skip to content

Commit

Permalink
fix(bigquery): Do not fail batch exports on missing permissions (#26810)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias authored Dec 10, 2024
1 parent 284f838 commit 65a5aa7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion posthog/temporal/batch_exports/bigquery_batch_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,12 @@ async def managed_table(
yield table
finally:
if delete is True:
await self.adelete_table(project_id, dataset_id, table_id, not_found_ok)
try:
await self.adelete_table(project_id, dataset_id, table_id, not_found_ok)
except Forbidden:
await logger.awarning(
"Missing delete permissions to delete %s.%s.%s", project_id, dataset_id, table_id
)

async def amerge_tables(
self,
Expand Down

0 comments on commit 65a5aa7

Please sign in to comment.