Skip to content

Commit

Permalink
Skip Aurora table deletion to speed up restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed May 4, 2024
1 parent 68954e7 commit 7fb971f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/brad/config/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,14 @@ def skip_athena_table_deletion(self) -> bool:
# Skip by default.
return True

@property
def skip_aurora_table_deletion(self) -> bool:
try:
return self._raw["skip_aurora_table_deletion"]
except KeyError:
# Skip by default.
return True

@property
def use_preset_redshift_clusters(self) -> bool:
try:
Expand Down
1 change: 1 addition & 0 deletions src/brad/daemon/transition_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ async def _run_aurora_post_transition(
table_diffs is not None
and len(table_diffs) > 0
and self._config.disable_table_movement is False
and self._config.skip_aurora_table_deletion is False
):
if self._system_event_logger is not None:
self._system_event_logger.log(
Expand Down

0 comments on commit 7fb971f

Please sign in to comment.