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 relayersconfig_processor: Functions for processing configuration filesinitialize_app_state: Functions for initializing application stateinitialize_workers: Functions for initializing background workersinitialize_plugins: Functions for initializing the plugin worker pool
Structs§
- Repository
Collection - Runtime
Config - 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). Returnstrueif the drain completed within the window,falseon 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.