Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
flowspy
Commits
441a2d31
Commit
441a2d31
authored
Feb 14, 2012
by
Leonidas Poulopoulos
Browse files
Prevented a bug that would cause the rule application to throw exception
parent
15d4014d
Changes
1
Hide whitespace changes
Inline
Side-by-side
flowspec/tasks.py
View file @
441a2d31
...
...
@@ -7,11 +7,8 @@ from celery.task.http import *
import
beanstalkc
from
django.conf
import
settings
import
datetime
from
flowspy.flowspec.models
import
*
from
django.core.mail
import
send_mail
from
flowspy.flowspec.models
import
*
from
django.template.loader
import
render_to_string
from
django.contrib.sites.models
import
Site
from
django.core.urlresolvers
import
reverse
import
os
...
...
@@ -139,6 +136,8 @@ def check_sync(route_name=None, selected_routes = []):
@
task
(
ignore_result
=
True
)
def
notify_expired
():
from
flowspy.flowspec.models
import
*
from
django.contrib.sites.models
import
Site
logger
.
info
(
'Initializing expiration notification'
)
routes
=
Route
.
objects
.
all
()
for
route
in
routes
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment