class

KemalWAF::PanicIsolator

Inherits Reference / Object

============================================================================= Panic Isolator

Manages isolated fiber execution with crash recovery

Constants

Log = ::Log.for("panic_isolator")

Constructors

instance
Source

Instance methods

all_fibers

============================================================================= Get All Fibers Status

Source
configure(max_restarts : Int32 | Nil = nil, restart_delay_ms : Int32 | Nil = nil)

Configure isolator

Source
enabled=(value : Bool)

Enable/disable isolation

Source
enabled?
Source
fiber_info(name : String) : IsolatedFiberInfo | Nil

============================================================================= Get Fiber Info

Source
on_crash

Set crash callback

Source
spawn_isolated(name : String, restart_delay_ms : Int32 | Nil = nil, &block : -> )

============================================================================= Spawn Isolated Fiber

Creates a fiber with automatic crash recovery If the fiber crashes, it will be automatically restarted

Source
spawn_with_retry(name : String, max_retries : Int32 = 3, base_delay_ms : Int32 = 100, &block : -> )

============================================================================= Spawn with Retry

Spawns a fiber that will retry on failure with backoff

Source
stats

============================================================================= Statistics

Source
stop_fiber(name : String)

============================================================================= Stop Fiber

Source