Simplifying action and task reference a bit, fixing some logic errors, and adding in runner message queue polling

This commit is contained in:
Kinesin Data Technologies Incorporated
2022-10-06 14:20:23 -03:00
parent ce621dc9d5
commit 2c96b16ec8
7 changed files with 241 additions and 212 deletions
+2 -7
View File
@@ -26,15 +26,10 @@ impl WorldDefinition {
));
}
}
let tasks: HashMap<String, Task> = self
let tasks: Vec<Task> = self
.tasks
.iter()
.map(|(tn, td)| {
(
tn.clone(),
td.to_task(tn, self.calendars.get(&td.calendar_name).unwrap()),
)
})
.map(|(tn, td)| td.to_task(tn, self.calendars.get(&td.calendar_name).unwrap()))
.collect();
let ts = TaskSet::from(tasks);