Random per-process-image instance token for `owner_instance`. Generated once per process image (exec-based reloads get a fresh token even though the PID is unchanged), so status files can tell "this process, task still alive" apart from "same PID after exec, task future is gone".
()
| 91 | /// the PID is unchanged), so status files can tell "this process, task still |
| 92 | /// alive" apart from "same PID after exec, task future is gone". |
| 93 | pub fn process_instance_token() -> &'static str { |
| 94 | use std::sync::OnceLock; |
| 95 | static TOKEN: OnceLock<String> = OnceLock::new(); |
| 96 | TOKEN.get_or_init(|| uuid::Uuid::new_v4().simple().to_string()) |
| 97 | } |
| 98 | |
| 99 | pub(super) fn normalize_delivery(notify: bool, wake: bool) -> (bool, bool) { |
| 100 | (notify || wake, wake) |
no outgoing calls