Merge pull request #2266 from ansible/celery-tastes-bad

replace the celery-based task queue with a kombu-based implementation

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot]
2018-10-12 18:40:54 +00:00
committed by GitHub
55 changed files with 1839 additions and 1241 deletions

View File

@@ -3370,7 +3370,7 @@ class JobTemplateCallback(GenericAPIView):
with transaction.atomic():
job = job_template.create_job(**kv)
# Send a signal to celery that the job should be started.
# Send a signal to signify that the job should be started.
result = job.signal_start(inventory_sources_already_updated=inventory_sources_already_updated)
if not result:
data = dict(msg=_('Error starting job!'))

View File

@@ -101,7 +101,9 @@ class UnifiedJobDeletionMixin(object):
class InstanceGroupMembershipMixin(object):
'''
Manages signaling celery to reload its queue configuration on Instance Group membership changes
This mixin overloads attach/detach so that it calls InstanceGroup.save(),
triggering a background recalculation of policy-based instance group
membership.
'''
def attach(self, request, *args, **kwargs):
response = super(InstanceGroupMembershipMixin, self).attach(request, *args, **kwargs)