projects
/
flowspy
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Turned expiration notification cron job into celery job
[flowspy]
/
settings.py.dist
diff --git
a/settings.py.dist
b/settings.py.dist
index
1bfe6a2
..
e14b6ee
100644
(file)
--- a/
settings.py.dist
+++ b/
settings.py.dist
@@
-193,13
+193,17
@@
UI_USER_THEN_ACTIONS = ['discard', 'rate-limit']
PROTECTED_SUBNETS = ['10.10.0.0/16']
PROTECTED_SUBNETS = ['10.10.0.0/16']
-CELERYBEAT_SCHEDULE = {
- # Executes every day at 01:35 AM
+CELERYBEAT_SCHEDULE = {
"every-day-sync": {
"task": "flowspec.tasks.check_sync",
"schedule": crontab(minute=01, hour=01),
"args": (),
},
"every-day-sync": {
"task": "flowspec.tasks.check_sync",
"schedule": crontab(minute=01, hour=01),
"args": (),
},
+ "notify-expired": {
+ "task": "flowspec.tasks.notify_expired",
+ "schedule": crontab(minute=01, hour=02),
+ "args": (),
+ },
}
# whois
PRIMARY_WHOIS = 'whois.grnet.gr'
}
# whois
PRIMARY_WHOIS = 'whois.grnet.gr'