Module bootstrap

Module bootstrap 

Source
Expand description

Initialization routines for the relayer system

This module contains functions and utilities for initializing various components of the relayer system, including relayers, configuration, application state, workers, and plugins.

§Submodules

  • initialize_relayers: Functions for initializing relayers
  • config_processor: Functions for processing configuration files
  • initialize_app_state: Functions for initializing application state
  • initialize_workers: Functions for initializing background workers
  • initialize_plugins: Functions for initializing the plugin worker pool

Structs§

RepositoryCollection
RuntimeConfig
Resolved worker-thread budget for the relayer’s runtimes.

Functions§

drain_worker_handles
Join the pipeline worker handles so in-flight work drains before the runtime is torn down on shutdown (D7). Bounded by timeout; if it elapses, remaining work is abandoned (at-least-once redelivery is the backstop). Returns true if the drain completed within the window, false on timeout.
get_relayer_ids_to_initialize
Collects relayer IDs that need initialization
initialize_app_state
Initializes application state
initialize_plugin_pool
Initialize the plugin worker pool if plugins are configured.
initialize_queue_workers
Creates the queue backend and initializes all workers in a single step.
initialize_relayer
initialize_relayers
initialize_repositories
Initializes repositories based on the server configuration
precompile_plugins
Precompile all configured plugins.
process_config_file
Process a complete configuration file by initializing all repositories.
shutdown_plugin_pool
Shutdown the plugin pool gracefully.