from celery.task.http import *
from flowspy.utils import beanstalkc
from django.conf import settings
+import datetime
import os
route.status = status
route.response = response
route.save()
- subtask(announce).delay("[%s] Rule removal: %s%s- Result %s" %(route.applier, route.name, reason_text, response), route.applier)
+ subtask(announce).delay("[%s] Suspending rule : %s%s- Result %s" %(route.applier, route.name, reason_text, response), route.applier)
# May not work in the first place... proxy is not aware of Route models
@task
for route in routes:
route.status = status
route.response = response
+ route.expires = datetime.date.today()
route.save()
subtask(announce).delay("[%s] Rule removal: %s%s- Result %s" %(route.applier, route.name, reason_text, response), route.applier)
else: