Skip to content

Commit

Permalink
chore(batch-exports): Do not retry on RefreshError and NotFound (#18107)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias authored Oct 20, 2023
1 parent 0103e91 commit 930db7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion posthog/temporal/workflows/bigquery_batch_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,12 @@ async def run(self, inputs: BigQueryBatchExportInputs):
maximum_interval=dt.timedelta(seconds=120),
maximum_attempts=10,
non_retryable_error_types=[
# Raised on missing permissions
# Raised on missing permissions.
"Forbidden",
# Invalid token.
"RefreshError",
# Usually means the dataset or project doesn't exist.
"NotFound",
],
),
)
Expand Down

0 comments on commit 930db7f

Please sign in to comment.