We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 031561e commit 1c4d7a5Copy full SHA for 1c4d7a5
crates/extensions/tedge_flows/src/runtime.rs
@@ -95,10 +95,18 @@ impl MessageProcessor {
95
}
96
97
fn deadlines(&self) -> impl Iterator<Item = tokio::time::Instant> + '_ {
98
- self.flows
+ let script_deadlines = self
99
+ .flows
100
.values()
101
.flat_map(|flow| &flow.steps)
- .filter_map(|step| step.script.next_execution)
102
+ .filter_map(|step| step.script.next_execution);
103
+
104
+ let source_deadlines = self
105
106
+ .values()
107
+ .filter_map(|flow| flow.input.next_deadline());
108
109
+ script_deadlines.chain(source_deadlines)
110
111
112
/// Get the next deadline for interval execution across all scripts
0 commit comments