[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Command rjsoec

NAME

Command rjsoec :: Ref Job Set On Error Continue

SYNOPSIS

rjsoec RefName TaskName JobName true/false

DESCRIPTION

The rjsoec command is used to change the `On Error Continue' property of the job. If the value is false, the job will be stopped if an abort occures, and the downstream tasks will wait. If the value is true, the downstream jobs will be executed or canceled (depending on the type of dependence), to continue stream execution.

EXAMPLE

A referential `myref' is created with one task named `mytask'. The rtoa command is used to plan this task every days.

Two jobs are created with a dependence between them. The path of `job1' is `/bin/false' : `false' returns an exit code of 1 which is consider by `Diogene87' as an abort.

We are now ready to test rjsoec command.

 
$ dio87d -d
$ 
$ dio87c ra myref
$ dio87c rta myref mytask
$ dio87c rtoa myref mytask add always
$
$ dio87c rja myref mytask job1
$ dio87c rjsp myref mytask job1 /bin/false
$
$ dio87c rja myref mytask job2
$ dio87c rjsp myref mytask job2 /bin/true
$
$ dio87c rjda myref mytask job1 job2
$

rjsoec is used to set to `true' the `On Error Continue' property. A day `d1' is created with `rp'. The xjl -s command is used to follow jobs execution. You can see that `job1' is aborted and that `job2' is running.

 
$ dio87c rjsoec myref mytask job1 true
$
$ dio87c rp myref "2004-03-03" d1 
$
$ dio87c -- xjl -s d1 mytask
job1	aborted
job2	running
$
$ dio87c -- xjl -s d1 mytask
job1	aborted
job2	terminated
$

rjsoec is used to set to `false' the `On Error Continue' property. A day `d2' is created with `rp'. The xjl -s command is used to follow jobs execution. You can see that `job1' is `abort_stopped'. The second job `job2' is waiting for dependence (`wait_for_dep') and not running ! An operator can try to restart `job1' execution or to cancel it.

 
$ dio87c rjsoec myref mytask job1 false
$
$ dio87c rp myref "2004-03-03" d2 
$
$ dio87c -- xjl -s d2 mytask
job1	abort_stopped
job2	wait_for_dep
$

ACCESS CONTROL

This function requires the `manage' privilege for the `referential' command family.

SEE ALSO


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by dom on September, 11 2005 using texi2html