We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a72b44 commit 9de6acfCopy full SHA for 9de6acf
ansible_base/task/tasks.py
@@ -1,13 +1,15 @@
1
import logging
2
3
from dispatcher.utils import resolve_callable
4
+from dispatcher.publish import task
5
from django.db import transaction
6
7
from ansible_base.task.models import TASK_STATES, Task
8
9
logger = logging.getLogger(__name__)
10
11
12
+@task(queue='dab_broadcast')
13
def run_task_from_queue():
14
with transaction.atomic():
15
task = Task.objects.filter(state=TASK_STATES.WAITING).select_for_update().first()
0 commit comments