Skip to main content

[jsr352-public] Re: Questions about Exit status and restart

  • From: Scott Kurz < >
  • To:
  • Subject: [jsr352-public] Re: Questions about Exit status and restart
  • Date: Tue, 12 Nov 2013 11:20:40 -0500


First, in your question it would help to distinguish when you are talking
about the exit status on the contexts, JobContext/StepContext vs. the
JobExecution/StepExecution objects.  See my update to the bug Michael
mentioned, as I'm basically proposing that only the execution's exit status
will default to the batch status.

By default, a completed step doesn't re-execute on a job restart.  This can
be overridden by the 'allow-start-if-complete' attribute, which sounds like
is the solution to your problem.

Regards,
------------------------------------------------------
Scott Kurz
WebSphere Batch / Compute Grid Development
T/L 295-5649;
External Phone 845-435-5649

--------------------------------------------------------



From:   
< >
To:     
,
Date:   11/12/2013 10:25 AM
Subject:        [jsr352-public] Questions about Exit status and restart



In the document, it says: "Exit status is initially set to the string
form of the batch status." However, for my app, If my batch is failed,
then both the step exit status and job exit status turn FAILED.   If my
batch is stopped, then the step exit status turns STOPPED, but the job
exit status is null. Otherwise, both exit status are always null. Is
this right?

Second question, when the batch is failed, both  exit status are
FAILED(I only have one step in this job), I restart this jobexcution,
the step cannot be restarted. Do I need some configuration in job.xml?

Third question, could I force the job/step exit status to be always
STOPPED? So that this batch could be restart even if it's completed.

Thanks.

GIF image



[jsr352-public] Questions about Exit status and restart

shanlu715 11/12/2013

[jsr352-public] Re: Questions about Exit status and restart

Michael Minella 11/12/2013

[jsr352-public] Re: Questions about Exit status and restart

Scott Kurz 11/12/2013

[jsr352-public] Re: Questions about Exit status and restart

Scott Kurz 11/12/2013

[jsr352-public] Re: Questions about Exit status and restart

Michael Minella 11/12/2013

[jsr352-public] Re: Questions about Exit status and restart

Shan Lu 11/12/2013

[jsr352-public] Re: Questions about Exit status and restart

Shan Lu 11/12/2013

[jsr352-public] Re: Questions about Exit status and restart

Scott Kurz 11/12/2013
 
 
Close
loading
Please Confirm
Close