Hi all,

On Sangkyoon's identity question: since Elijah suggested building resume() on 
top of initialize_from, I checked what initialize_from keeps across retries. 
#786 doesn't change that code, so this is the same on main.

Graph a -> b -> c, where b fails twice and then succeeds, restarting each time 
with initialize_from(resume_at_next_action=True) and the SQLite persister. b 
runs at sequence_id 1, 2 and 3. The second failed row (2) no longer has 
__PRIOR_STEP, because initialize_from removes it to restart at the failed 
action. So after more than one failure, the row load() returns has nothing 
pointing to the last completed step (0). To use "last completed sequence id + 
action name", it would need to be saved with failed rows, or found by walking 
back with load(..., sequence_id=n-1).

Happy to share the script.

Eneko

On 2026-10-04 02:35 UTC Sangkyoon Nam wrote:
> Hi all,
>
> I left a review on #786 with repros:
> https://github.com/apache/burr/pull/786#pullrequestreview-5403771409.
> One question fits better here, since it decides the scope vaquar asked
> about.
>
> Within an app and partition, the journal is selected by sequence_id, and
> that moves. A resumed action runs at N+1, and so does an action retried
> from a saved failed row. Loading the journal for the about-to-run
> sequence addresses the crash-before-checkpoint case only. Covering
> retries and repeated suspends needs an invocation identity that stays
> fixed across retries and resumes, changes after a successful completion,
> and stays distinct across partitions and child applications.
>
> Is retry recovery in scope for this PR, and if so, what should that
> identity be?
>
> Sangkyoon Nam

Reply via email to