Skip to content

Commit 9de6acf

Browse files
committed
This should be a dispatcher task
1 parent 3a72b44 commit 9de6acf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ansible_base/task/tasks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import logging
22

33
from dispatcher.utils import resolve_callable
4+
from dispatcher.publish import task
45
from django.db import transaction
56

67
from ansible_base.task.models import TASK_STATES, Task
78

89
logger = logging.getLogger(__name__)
910

1011

12+
@task(queue='dab_broadcast')
1113
def run_task_from_queue():
1214
with transaction.atomic():
1315
task = Task.objects.filter(state=TASK_STATES.WAITING).select_for_update().first()

0 commit comments

Comments
 (0)