Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5a4a29e7
authored
Feb 11, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
periodic tasks: added ignore-result to prevent massive queue stuck
parent
d400a069
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
circle/firewall/tasks/local_tasks.py
+1
-1
circle/vm/tasks/local_periodic_tasks.py
+1
-1
No files found.
circle/firewall/tasks/local_tasks.py
View file @
5a4a29e7
...
@@ -4,7 +4,7 @@ import django.conf
...
@@ -4,7 +4,7 @@ import django.conf
settings
=
django
.
conf
.
settings
.
FIREWALL_SETTINGS
settings
=
django
.
conf
.
settings
.
FIREWALL_SETTINGS
@celery.task
@celery.task
(
ignore_result
=
True
)
def
periodic_task
():
def
periodic_task
():
from
firewall.fw
import
Firewall
,
dhcp
,
dns
,
ipset
,
vlan
from
firewall.fw
import
Firewall
,
dhcp
,
dns
,
ipset
,
vlan
import
remote_tasks
import
remote_tasks
...
...
circle/vm/tasks/local_periodic_tasks.py
View file @
5a4a29e7
...
@@ -2,7 +2,7 @@ from manager.mancelery import celery
...
@@ -2,7 +2,7 @@ from manager.mancelery import celery
from
vm.models
import
Node
from
vm.models
import
Node
@celery.task
@celery.task
(
ignore_result
=
True
)
def
update_domain_states
():
def
update_domain_states
():
nodes
=
Node
.
objects
.
filter
(
enabled
=
True
)
.
all
()
nodes
=
Node
.
objects
.
filter
(
enabled
=
True
)
.
all
()
for
node
in
nodes
:
for
node
in
nodes
:
...
...
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