H.Session.Server.Generation (H v0.3.0)

Copy Markdown View Source

Generation and compaction worker spawning, auto-compaction promotion, retry/wake staging, and completion/cancellation/abort settlement for H.Session.Server.

Summary

Functions

abort_compaction_run(comp_task, cid, reason, state, now)

abort_generation_run(gen_task, cid, reason, state, now)

compaction_failure(live, task, code, message)

maybe_append_aborted_partial(cid, live, state, now)

replay_inference?(task)

retry_delay_ms(state, attempt)

schedule_inference_retry(task, cid, live, retry_count, state, now, error \\ %{})

schedule_inference_wait(task, cid, live, state, now, error)

spawn_compaction_worker(cid, comp_task_id, state)

spawn_generation_worker(cid, gen_task_id, state)

stage_done(tid, attempt_id, arg, state)

stage_wait_signal(topic, state)

stage_wake(tid, state)

valid_wait_topic?(topic)