Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d47bbafa
authored
Aug 11, 2014
by
Őry Máté
Committed by
Bach Dániel
Aug 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix send_email_notifications task
parent
0731aa4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
circle/dashboard/tasks/local_periodic_tasks.py
+1
-0
circle/manager/mancelery.py
+2
-1
No files found.
circle/dashboard/tasks/local_periodic_tasks.py
View file @
d47bbafa
...
...
@@ -41,6 +41,7 @@ def send_email_notifications():
for
i
in
Notification
.
objects
.
filter
(
q
):
recipients
.
setdefault
(
i
.
to
,
[])
recipients
[
i
.
to
]
.
append
(
i
)
logger
.
info
(
"Delivering notifications to
%
d users"
,
len
(
recipients
))
for
user
,
msgs
in
recipients
.
iteritems
():
if
(
not
user
.
profile
or
not
user
.
email
or
not
...
...
circle/manager/mancelery.py
View file @
d47bbafa
...
...
@@ -32,6 +32,7 @@ celery = Celery('manager',
'storage.tasks.periodic_tasks'
,
'firewall.tasks.local_tasks'
,
'monitor.tasks.local_periodic_tasks'
,
'dashboard.tasks.local_periodic_tasks'
,
])
celery
.
conf
.
update
(
...
...
@@ -60,7 +61,7 @@ celery.conf.update(
'schedule'
:
timedelta
(
hours
=
1
),
'options'
:
{
'queue'
:
'localhost.man'
}
},
'dashboard.
local_periodic_task
s'
:
{
'dashboard.
send_email_notification
s'
:
{
'task'
:
'dashboard.tasks.local_periodic_tasks.'
'send_email_notifications'
,
'schedule'
:
timedelta
(
hours
=
24
),
...
...
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