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 d79266e commit 869c90eCopy full SHA for 869c90e
core-dump-agent/src/main.rs
@@ -186,9 +186,16 @@ async fn main() -> Result<(), anyhow::Error> {
186
}
187
};
188
189
- let s_job = match Job::new_async(schedule.as_str(), move |_uuid, _l| {
+ let s_job = match Job::new_async(schedule.as_str(), move |uuid, mut l| {
190
Box::pin(async move {
191
- run_polling_agent().await;
+ let next_tick = l.next_tick_for_job(uuid).await;
192
+ match next_tick {
193
+ Ok(Some(ts)) => {
194
+ info!("Next scheduled run {:?}", ts);
195
+ run_polling_agent().await;
196
+ }
197
+ _ => warn!("Could not get next tick for job"),
198
199
})
200
}) {
201
Ok(v) => v,
0 commit comments