Skip to content

Commit

Permalink
BATCH-1788: Updated documentation to correctly relfect the behavior o…
Browse files Browse the repository at this point in the history
…f the ABANDONED status
  • Loading branch information
mminella committed Feb 7, 2013
1 parent 703552f commit 9efb3c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/site/docbook/reference/job.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1045,11 +1045,11 @@ jobOperator.stop(executions.iterator().next()); ]]></programlisting>

<para>A job execution which is <classname>FAILED</classname> can be
restarted (if the Job is restartable). A job execution whose status is
<classname>ABORTED</classname> will not be restarted by the framework.
The <classname>ABORTED</classname> status is also used in step
<classname>ABANDONED</classname> will not be restarted by the framework.
The <classname>ABANDONED</classname> status is also used in step
executions to mark them as skippable in a restarted job execution: if a
job is executing and encounters a step that has been marked
<classname>ABORTED</classname> in the previous failed job execution, it
<classname>ABANDONED</classname> in the previous failed job execution, it
will move on to the next step (as determined by the job flow definition
and the step execution exit status).</para>

Expand All @@ -1058,7 +1058,7 @@ jobOperator.stop(executions.iterator().next()); ]]></programlisting>
no way of knowing because no-one told it before the process died. You
have to tell it manually that you know that the execution either failed
or should be considered aborted (change its status to
<classname>FAILED</classname> or <classname>ABORTED</classname>) - it's
<classname>FAILED</classname> or <classname>ABANDONED</classname>) - it's
a business decision and there is no way to automate it. Only change the
status to <classname>FAILED</classname> if it is not restartable, or if
you know the restart data is valid. There is a utility in Spring Batch
Expand Down

0 comments on commit 9efb3c0

Please sign in to comment.