From 05fb14700439762f2380bc8377eac071d1bbc64f Mon Sep 17 00:00:00 2001 From: mishaborodin Date: Wed, 30 Mar 2022 12:35:29 +0200 Subject: [PATCH] Don't re-create deleted rules --- atlas/config-templates/etc/requirements.txt | 4 +++- atlas/prestage/views.py | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/atlas/config-templates/etc/requirements.txt b/atlas/config-templates/etc/requirements.txt index e6e5107d..fc17cb9b 100644 --- a/atlas/config-templates/etc/requirements.txt +++ b/atlas/config-templates/etc/requirements.txt @@ -17,4 +17,6 @@ celery==5.2.3 django-celery-beat==2.2.1 django-celery-results==2.2.0 python-json-logger==2.0.2 -mod-wsgi==4.9.0 \ No newline at end of file +mod-wsgi==4.9.0 +pandas==1.4.1 +openpyxl==3.0.9 \ No newline at end of file diff --git a/atlas/prestage/views.py b/atlas/prestage/views.py index d29018da..1d92ae82 100644 --- a/atlas/prestage/views.py +++ b/atlas/prestage/views.py @@ -896,8 +896,9 @@ def do_staging(action_step_id, ddm): dataset_stage.update_time = current_time else: delay = 2*int(action_step.get_config('delay')) - if ((existed_rule['expires_at']-timezone.now().replace(tzinfo=None)) timedelta(hours=2)): try: ddm.change_rule_lifetime(existed_rule['id'],15*86400) except Exception as e: