fix missing job lifecycle messages (#11801)

we were missing these messages for control type jobs that call start_task earlier than other types of jobs
This commit is contained in:
Elijah DeLee 2022-02-23 13:56:25 -05:00 committed by GitHub
parent a394f11d07
commit 38f50f014b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -493,6 +493,8 @@ class TaskManager:
control_instance.jobs_running += 1
self.dependency_graph.add_job(task)
execution_instance = self.real_instances[control_instance.hostname]
task.log_lifecycle("controller_node_chosen")
task.log_lifecycle("execution_node_chosen")
self.start_task(task, self.controlplane_ig, task.get_jobs_fail_chain(), execution_instance)
found_acceptable_queue = True
continue