Adding Labels to Pods/Jobs (#3233)
Adding Labels to Pods/Jobs (#3233)

* inital push for version control

* added toil_id to both pod and job metadata

* updated _ourJobObjects to utilize label and field selector

* added items to v1podlist return type ; removed extra unused function

* added items to v1podlist return type ; removed extra unused function

* fixed items items/naming error

* accidently removed necessary fucntion

* delete_collection_namespaced_job by selecting our unique label

* fixed syntax for delete namespaced pod

* removed def statemenet

* dropped propagation policy for deleting collection of jobs

* debugging purpose since I do not have kube setup to test atm

* debugging purpose since I do not have kube setup to test atm

* reverted back to kill all pods regardless of status @ shutdown

* fixed adam's comments ; also fixed pagination issues

* list -> generators for pagination

* yield lists of paged results ; removed limit parameter

* yield list of v1JobObjects

* yield  v1Job/pod objects
BD2KGenomics/slugflow,BD2KGenomics/slugflow