Skip to main content

Module worker

Module worker 

Source

Re-exportsΒ§

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; πŸ”’

EnumsΒ§

WorkerCommands πŸ”’
Run background workers. With no subcommand, runs all of them in one process.

FunctionsΒ§

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 πŸ”’