|
Csilk 0.2.1
A lightweight, high-performance C HTTP web framework
|
Workflow execution context — per-run state tracking all node progress, scheduling, memory, and budget enforcement. Created by csilk_wf_run_ext_internal() and freed by cleanup_ctx(). More...

Data Fields | |
| csilk_wf_t * | wf |
| csilk_data_t * | initial_input |
| void(* | callback )(csilk_data_t *) |
| void(* | trace_callback )(csilk_data_t *, csilk_wf_trace_t *) |
| int * | node_input_counts |
| int | total_executions |
| int | nodes_active |
| uv_mutex_t | mutex |
| csilk_arena_t * | arena |
| uv_mutex_t | arena_mutex |
| csilk_data_t ** | node_outputs |
| char | exec_id [37] |
| char * | wal_path |
| csilk_wf_trace_t * | trace |
| uv_mutex_t | trace_mutex |
| int | total_tokens |
| int | is_terminated |
| int | is_paused |
| int * | node_approved |
| uv_timer_t | ttl_timer |
| int | is_ttl_expired |
Workflow execution context — per-run state tracking all node progress, scheduling, memory, and budget enforcement. Created by csilk_wf_run_ext_internal() and freed by cleanup_ctx().
Opaque handle for a workflow execution context.
| csilk_arena_t* csilk_wf_ctx_t::arena |
Memory arena for this execution.
| uv_mutex_t csilk_wf_ctx_t::arena_mutex |
Protects arena allocations (parallel tool calls).
| void(* csilk_wf_ctx_t::callback) (csilk_data_t *) |
Final result callback.
| char csilk_wf_ctx_t::exec_id[37] |
UUID execution identifier (36 chars + null).
| csilk_data_t* csilk_wf_ctx_t::initial_input |
Original input data passed to run().
| int csilk_wf_ctx_t::is_paused |
Workflow is waiting for human input.
| int csilk_wf_ctx_t::is_terminated |
Hard stop flag (budget exceeded, TTL expired).
| int csilk_wf_ctx_t::is_ttl_expired |
TTL expiration flag.
| uv_mutex_t csilk_wf_ctx_t::mutex |
Protects scheduler state (counters, flags).
| int* csilk_wf_ctx_t::node_approved |
Tracking approved interactive nodes.
| int* csilk_wf_ctx_t::node_input_counts |
Per-node received-input counters for join tracking.
| csilk_data_t** csilk_wf_ctx_t::node_outputs |
Per-node output data history.
| int csilk_wf_ctx_t::nodes_active |
Nodes currently queued or running on thread pool.
| int csilk_wf_ctx_t::total_executions |
Total nodes executed (safety counter for infinite loops).
| int csilk_wf_ctx_t::total_tokens |
Cumulative tokens used across AI nodes.
| csilk_wf_trace_t* csilk_wf_ctx_t::trace |
Execution trace (timing, I/O dumps).
| void(* csilk_wf_ctx_t::trace_callback) (csilk_data_t *, csilk_wf_trace_t *) |
Traced result callback.
| uv_mutex_t csilk_wf_ctx_t::trace_mutex |
Protects trace appends from parallel completions.
| uv_timer_t csilk_wf_ctx_t::ttl_timer |
Global TTL timer handle.
| char* csilk_wf_ctx_t::wal_path |
Full path to the WAL file for this execution.
| csilk_wf_t* csilk_wf_ctx_t::wf |
The workflow definition.