Commit 5a4a29e7 by Guba Sándor

periodic tasks: added ignore-result to prevent massive queue stuck

parent d400a069
...@@ -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
......
...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment