# Execution Deletion

When kube-dag schedule an execution, it will set the metadata.ownerReference to all jobs to specify relationships between owners and dependents. And kubernetes sets the value of ownerReference automatically for pod of a job.

So let’s check one job of previously created execution test-exec.

kubectl get job test-exec.a.0 --output=yaml


The output shows that the job owner is a Execution named test-exec.

apiVersion: batch/v1
kind: Job
...
ownerReferences:
- apiVersion: execution.kubegene.io/v1alpha1
blockOwnerDeletion: true
controller: true
kind: Execution
name: test-exec

Note: The ownerReference is used to control the relationship between owner and dependents, do not update it unless you know what you do. Also donot delete/update the Execution dependents, especially when the execution is in Running phase.