Skip to main contentModule worker
Source use std::sync::Arc; π use clap::Subcommand; π use figment::Figment; π use figment::providers::Env; π use figment::providers::Format as _; π use figment::providers::Toml; π use haste_fhir_model::r4::generated::terminology::IssueType; π use haste_fhir_operation_error::OperationOutcomeError; π use haste_server::config::ServerConfig; π use haste_server::jobs::operation::OperationJobHandler; π use haste_server::services; π use haste_worker::async_jobs::AsyncJobWorker; π use haste_worker::async_jobs::JobHandler; π use haste_worker::search_indexing; π use haste_worker::traits::Worker as _; π use tokio::task::JoinError; π use tokio::task::JoinHandle; π
- WorkerCommands π
- Run background workers. With no subcommand, runs all of them in one process.
- config_error π
- figment π
- finished π
- A workerβs loop only ends on a panic, which fails the command.
- run π
- Runs the
worker command group. command is None when the bare worker
invocation is used, which runs every worker. - start_async_jobs π
- start_indexing π