Skip to content

Commit

Permalink
seems to be working
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Sep 13, 2023
1 parent 2cca8cd commit c996713
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions housewatch/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def setup_periodic_tasks(sender: Celery, **kwargs):
def run_backup(backup_id: str, incremental: bool = False):
from housewatch.clickhouse import backups

logger.info("Running backup", backup_id=backup_id, incremental=incremental)

backups.run_backup(backup_id, incremental=incremental)


Expand Down
2 changes: 1 addition & 1 deletion housewatch/clickhouse/backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def run_backup(backup_id, incremental=False):
S3_LOCATION = f"https://{backup.bucket}.s3.amazonaws.com/{path}"
if incremental:
if not backup.last_run:
raise ValueError("Cannot run incremental backup without a base backup")
logger.info("Cannot run incremental backup without a base backup")
base_backup = backup.last_base_backup
if backup.is_database_backup():
create_database_backup(
Expand Down

0 comments on commit c996713

Please sign in to comment.