Skip to main content

AppConfig

Struct AppConfig 

Source
#[non_exhaustive]
pub struct AppConfig {
Show 24 fields pub app_id: String, pub dev_mode_force_sync: bool, pub max_pending_seconds: u64, pub heartbeat_interval_seconds: u64, pub runner_dead_after_seconds: u64, pub recovery_check_interval_seconds: u64, pub print_arguments: bool, pub argument_print_mode: ArgumentPrintMode, pub truncate_arguments_length: usize, pub recover_pending_cron: String, pub recover_running_cron: String, pub trigger_task_modules: Vec<String>, pub cached_status_time_seconds: f64, pub logging_level: String, pub log_format: LogFormat, pub log_use_colors: Option<bool>, pub compact_log_context: bool, pub blocking_control: bool, pub auto_final_invocation_purge_hours: f64, pub scheduler_interval_seconds: u64, pub enable_scheduler: bool, pub atomic_service_interval_minutes: f64, pub atomic_service_spread_margin_minutes: f64, pub atomic_service_check_interval_minutes: f64,
}
Expand description

Global application configuration.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§app_id: String

Unique identifier for this application instance

§dev_mode_force_sync: bool

Force synchronous task execution (for development/testing)

§max_pending_seconds: u64

Maximum time an invocation can be pending before recovery (seconds)

§heartbeat_interval_seconds: u64

Heartbeat interval for runners (seconds)

§runner_dead_after_seconds: u64

Runners without a heartbeat for this long are considered dead (seconds)

§recovery_check_interval_seconds: u64

How often to scan for stale invocations (seconds)

§print_arguments: bool

Whether to display arguments in logs

§argument_print_mode: ArgumentPrintMode

How arguments are displayed in logs/monitoring

§truncate_arguments_length: usize

Maximum length for truncated argument display

§recover_pending_cron: String

Cron expression for recovering pending invocations (empty = disabled)

§recover_running_cron: String

Cron expression for recovering running invocations from dead runners (empty = disabled)

§trigger_task_modules: Vec<String>

Module paths to scan for trigger task registration

§cached_status_time_seconds: f64

TTL for cached invocation status checks (seconds, 0 = no cache)

§logging_level: String

Logging level (trace, debug, info, warn, error)

§log_format: LogFormat

Log output format (Text or Json)

§log_use_colors: Option<bool>

Whether to use ANSI colors in text format (None = auto-detect TTY)

§compact_log_context: bool

Whether to show compact context (abbreviated names, truncated IDs)

§blocking_control: bool

Blocking control — whether orchestrator uses blocking/waiting semantics

§auto_final_invocation_purge_hours: f64

Hours after which final invocations can be auto-purged (0 = disabled)

§scheduler_interval_seconds: u64

Scheduler evaluation interval in seconds (trigger scheduler)

§enable_scheduler: bool

Whether the scheduler is enabled

§atomic_service_interval_minutes: f64

Total cycle interval for atomic global services (triggers, recovery, etc.) in minutes. The interval is divided equally among all active runners.

§atomic_service_spread_margin_minutes: f64

Safety margin (minutes) subtracted from each runner’s time slot to prevent overlapping execution of atomic services across distributed runners.

§atomic_service_check_interval_minutes: f64

How frequently an individual runner checks if it should execute atomic global services (minutes). Should be less than atomic_service_interval_minutes.

Implementations§

Source§

impl AppConfig

Source

pub fn new(app_id: impl Into<String>) -> AppConfig

Trait Implementations§

Source§

impl Clone for AppConfig

Source§

fn clone(&self) -> AppConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Config for AppConfig

Source§

fn fields() -> &'static [FieldMeta]

Static metadata for every field in this config struct.
Source§

fn defaults() -> AppConfig

Construct the struct with all default values. Fields without defaults should use the type’s Default (e.g., None for Option<T>).
Source§

fn from_values( values: &HashMap<String, ConfigValue>, ) -> Result<AppConfig, ConfigError>

Build a concrete instance from a map of field_name → ConfigValue. Read more
Source§

impl Debug for AppConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for AppConfig

Source§

fn default() -> AppConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for AppConfig

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<AppConfig, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for AppConfig

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,