mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
Push changes before rebasing
This commit is contained in:
parent
f9b439ae82
commit
67046513ae
@ -905,7 +905,7 @@ class SystemJobEventsList(SubListAPIView):
|
||||
def get_queryset(self):
|
||||
job = self.get_parent_object()
|
||||
self.check_parent_access(job)
|
||||
qs = job.job_events.select_related('host').filter(job_created=job.created).order_by('start_line')
|
||||
qs = job.system_job_events.select_related('host').filter(job_created=job.created).order_by('start_line')
|
||||
return qs.all()
|
||||
|
||||
class ProjectUpdateCancel(RetrieveAPIView):
|
||||
|
||||
@ -261,11 +261,6 @@ class TaskManager:
|
||||
logger.debug("No controllers available in group {} to run {}".format(rampart_group.name, task.log_format))
|
||||
return
|
||||
|
||||
# Before task leaves pending state, ensure that job_event partitions exist
|
||||
# TODO: Currently, only creating partition for jobs. Drop contiditional once
|
||||
# there are partitions for all job event types
|
||||
if task_actual['type'] == 'job':
|
||||
create_partition()
|
||||
task.status = 'waiting'
|
||||
|
||||
(start_status, opts) = task.pre_start()
|
||||
@ -315,6 +310,9 @@ class TaskManager:
|
||||
|
||||
def post_commit():
|
||||
if task.status != 'failed' and type(task) is not WorkflowJob:
|
||||
# Ensure that job event partition exists
|
||||
create_partition('main_jobevent')
|
||||
|
||||
task_cls = task._get_task_class()
|
||||
task_cls.apply_async(
|
||||
[task.pk],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user