flowcrafter_run_node_state_write_failed

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Handle a failed node-state write
  5. Since

Description

Fires when a run node-state write fails to persist. A failed write can silently strand a run — the engine reads a missing pending row as “no work left” and completes the run short. Hook this to alert, or to fail the owning run rather than let it finish incomplete.

Usage

Handle a failed node-state write.

add_action( 'flowcrafter_run_node_state_write_failed', 'my_custom_function' );

Parameters

$context array

Failure context.

Examples

Handle a failed node-state write

add_action( 'flowcrafter_run_node_state_write_failed', function ( $context ) {
    error_log( wp_json_encode( $context ) );
} );

Since

  • 1.0-beta-1 Hook added.