Uncomment context traversal

This commit is contained in:
Jacob Wallraff
2022-12-14 16:05:58 -08:00
parent d48adfa651
commit 873bdcc575
@@ -20,32 +20,32 @@ export function getJobContext(workflowContext: WorkflowContext): data.Dictionary
if (!jobContext.get(key)) { if (!jobContext.get(key)) {
switch (key) { switch (key) {
case "container": case "container":
// var containerDictionary = new data.Dictionary(); var containerDictionary = new data.Dictionary();
// for (const containerKey of containerKeys) { for (const containerKey of containerKeys) {
// if (job.container[containerKey]) { if (job.container[containerKey]) {
// containerDictionary.add(containerKey, job.container[containerKey]); containerDictionary.add(containerKey, job.container[containerKey]);
// } }
// } }
// jobContext.add(key, containerDictionary); jobContext.add(key, containerDictionary);
jobContext.add(key, new data.Null()); // jobContext.add(key, new data.Null());
break; break;
case "services": case "services":
// var services = new data.Dictionary(); var services = new data.Dictionary();
// for (const service of job.services) { for (const service of job.services) {
// var serviceDictionary = new data.Dictionary(); var serviceDictionary = new data.Dictionary();
// for (const serviceKey of serviceKeys) { for (const serviceKey of serviceKeys) {
// if (service[serviceKey]) { if (service[serviceKey]) {
// serviceDictionary.add(serviceKey, service[serviceKey]); serviceDictionary.add(serviceKey, service[serviceKey]);
// } }
// } }
// services.add(service, serviceDictionary); services.add(service, serviceDictionary);
// } }
// jobContext.add(key, services); jobContext.add(key, services);
jobContext.add(key, new data.Null()); // jobContext.add(key, new data.Null());
break; break;
case "status": case "status":
// jobContext.add(key, job.status); jobContext.add(key, job.status);
jobContext.add(key, new data.Null()); // jobContext.add(key, new data.Null());
break; break;
} }
} }