Merge pull request #1971 from chrismeyersfsu/fix-cached_dependency_list

do not cache dependency_list
This commit is contained in:
Chris Meyers
2018-05-29 11:27:59 -04:00
committed by GitHub

View File

@@ -234,9 +234,11 @@ class TaskManager():
def get_dependent_jobs_for_inv_and_proj_update(self, job_obj):
return [{'type': j.model_to_str(), 'id': j.id} for j in job_obj.dependent_jobs.all()]
def start_task(self, task, rampart_group, dependent_tasks=[]):
def start_task(self, task, rampart_group, dependent_tasks=None):
from awx.main.tasks import handle_work_error, handle_work_success
dependent_tasks = dependent_tasks or []
task_actual = {
'type': get_type_for_model(type(task)),
'id': task.id,