Skip to main content

is_transient_error

Function is_transient_error 

Source
pub fn is_transient_error(err: &RunError) -> bool
Expand description

Default transient error check for jj/git.

Retries on:

  • NonZeroExit with "stale" in stderr — “The working copy is stale” (jj)
  • NonZeroExit with ".lock" in stderr — Lock file contention (git/jj)

Spawn failures and timeouts are never treated as transient.