Skip to main content

Module runtime

Module runtime 

Source
Expand description

The composition root: the worker loop, the one-iteration dispatcher, the manual actions, and the Suotar adapter behind the study registry port, which nothing outside this module can name.

Re-exports§

pub use dispatch::PhaseContext;
pub use dispatch::PhaseSkipReason;
pub use dispatch::PhaseTick;
pub use dispatch::Runner;
pub use dispatch::run_phase_once;
pub use manual::ManualActionContext;
pub use manual::look_up_person;
pub use manual::resend_linking_mail_for_target;
pub use suotar::endpoints_paused_by;
pub use suotar::is_waiting_item;
pub use suotar::is_waiting_to_probe;
pub use suotar::max_study_registry_wait;
pub use suotar::reset_rate_limits;

Modules§

dispatch 🔒
Running one iteration of one phase, and the bookkeeping around it: the pause and scope checks, the heartbeat, the circuit breakers and the limiter.
heartbeat 🔒
The heartbeat a running iteration keeps refreshing.
manual 🔒
The account-linking actions a person sets off by hand, each over a study registry built for someone waiting on the answer.
process_local 🔒
The in-memory maps this worker process keeps its advisory state in: the circuit breakers’, the rate limiter’s, and the worker loop’s last logged skips.
suotar 🔒
The study registry over Suotar, for phase iterations and for manual actions: the only part of the pipeline that names Suotar’s wire items and codes, or sends through its client.
worker_loop
The loop both credit registration workers run.