headless_lms_server/programs/suotar_syncer.rs
1//! The worker that owns everything about credit registration except the ledger: enrolment discovery,
2//! the account-linking mails and the open university product access tokens. Separate from the
3//! registrar because no phase of it moves a ledger row and its intervals are hours, not seconds.
4
5use super::credit_registrar::run_credit_registration_worker;
6
7const PROCESS_NAME: &str = "suotar-syncer";
8
9pub async fn main() -> anyhow::Result<()> {
10 run_credit_registration_worker(
11 PROCESS_NAME,
12 "Starting the Suotar syncer.",
13 "Still syncing with the study registry.",
14 )
15 .await
16}