MCPcopy Create free account
hub / github.com/AI45Lab/Code / next_fire_after

Method next_fire_after

core/src/serve/schedule.rs:39–41  ·  view source on GitHub ↗

The next fire time strictly after `now` (None if it never fires again).

(&self, now: DateTime<Utc>)

Source from the content-addressed store, hash-verified

37
38 /// The next fire time strictly after `now` (None if it never fires again).
39 pub fn next_fire_after(&self, now: DateTime<Utc>) -> Option<DateTime<Utc>> {
40 self.schedule.after(&now).next()
41 }
42}
43
44/// Normalize a cron expression to the 6-field form the `cron` crate expects:

Callers 1

run_jobFunction · 0.80

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected