persistent_scheduler/core/
utils.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[macro_export]
macro_rules! generate_token {
    () => {
        ulid::Ulid::new().to_string()
    };
}

#[macro_export]
macro_rules! utc_now {
    () => {{
        use chrono::Utc;
        Utc::now().timestamp_millis()
    }};
}