Skip to content

Commit

Permalink
chore(data-warehouse): Adjusted temporal and sql settings for long ru…
Browse files Browse the repository at this point in the history
…nning tasks (#25196)
  • Loading branch information
Gilbert09 authored Sep 25, 2024
1 parent 81d0863 commit de87079
Show file tree
Hide file tree
Showing 3 changed files with 320 additions and 322 deletions.
4 changes: 2 additions & 2 deletions posthog/temporal/data_imports/external_data_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@ async def run(self, inputs: ExternalDataWorkflowInputs):
timeout_params = (
{"start_to_close_timeout": dt.timedelta(weeks=1), "retry_policy": RetryPolicy(maximum_attempts=1)}
if incremental
else {"start_to_close_timeout": dt.timedelta(hours=5), "retry_policy": RetryPolicy(maximum_attempts=3)}
else {"start_to_close_timeout": dt.timedelta(hours=12), "retry_policy": RetryPolicy(maximum_attempts=3)}
)

await workflow.execute_activity(
import_data_activity,
job_inputs,
heartbeat_timeout=dt.timedelta(minutes=2),
heartbeat_timeout=dt.timedelta(minutes=5),
**timeout_params,
) # type: ignore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Sql Database source settings and constants"""

DEFAULT_CHUNK_SIZE = 1000
DEFAULT_CHUNK_SIZE = 5000
Loading

0 comments on commit de87079

Please sign in to comment.