Move nightly tasks before introduction of archived flag on jobs

This commit is contained in:
Pea Tyczynska
2018-11-21 14:21:37 +00:00
committed by Alexey Bezhan
parent be6f37069b
commit e5fd027192
2 changed files with 8 additions and 6 deletions

View File

@@ -67,6 +67,7 @@ def remove_csv_files(job_types):
jobs = dao_get_jobs_older_than_data_retention(notification_types=job_types)
for job in jobs:
s3.remove_job_from_s3(job.service_id, job.id)
# job.archived = true; commit;
current_app.logger.info("Job ID {} has been removed from s3.".format(job.id))