Skip to content

Commit

Permalink
add more logging to the remove_sms_email_jobs task (#2125)
Browse files Browse the repository at this point in the history
  • Loading branch information
sastels authored Feb 28, 2024
1 parent 260722e commit 807f790
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/celery/nightly_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ def remove_letter_csv_files():

def _remove_csv_files(job_types):
jobs = dao_get_jobs_older_than_data_retention(notification_types=job_types)
current_app.logger.info("TEMP LOGGING: trying to remove {} jobs.".format(len(jobs)))
for job in jobs:
current_app.logger.info("TEMP LOGGING: trying to remove Job ID {} from s3.".format(job.id))
s3.remove_job_from_s3(job.service_id, job.id)
current_app.logger.info("TEMP LOGGING: trying to archive Job ID {}".format(job.id))
dao_archive_job(job)
current_app.logger.info("Job ID {} has been removed from s3.".format(job.id))

Expand Down

0 comments on commit 807f790

Please sign in to comment.