Fix staging for summary report

This commit is contained in:
Joshua Boniface 2024-08-25 16:11:35 -04:00
parent 61365e6e01
commit a957218976
1 changed files with 9 additions and 7 deletions

View File

@ -731,13 +731,15 @@ def worker_cluster_autobackup(
autobackup_end_time = datetime.now() autobackup_end_time = datetime.now()
autobackup_total_time = autobackup_end_time - autobackup_start_time autobackup_total_time = autobackup_end_time - autobackup_start_time
send_execution_summary_report( if email_recipients is not None:
(celery, current_stage, total_stages), send_execution_summary_report(
config, (celery, current_stage, total_stages),
recipients=email_recipients, config,
total_time=autobackup_total_time, recipients=email_recipients,
summary=backup_summary, total_time=autobackup_total_time,
) summary=backup_summary,
)
current_stage += 1
current_stage += 1 current_stage += 1
return finish( return finish(