The JOBSTATUS Database

Places in the JOBSTATUS database represent the status of jobs.

The name of the place is of the form TYPE/JOBID: TYPE represents DONE FAIL or SUCCESS; JOBID is typically the ID of the job containing the place.
Note: JOBID could be any unique string.

This database does not require any operation on any filesystems. It is used in Accelerator to represent jobs that have no output log. It is also used to represent jobs whose execution depends on the success or failure of a job.

To attach a JOBSTATUS place to a job, use the following FDL code:
# Fragment of FDL
set jobid1 [J vw cp aa bb]
O -db JOBSTATUS -sticky -quote "DONE/$jobid1"

# Run this job after jobid1, whether it passes or fails.
set jobid2 [J vw cp bb cc]
I -db JOBSTATUS -sticky -quote "DONE/$jobid1"
Type
Behavior
SUCCESS
This is the simplest case. The place becomes VALID when the containing job also becomes VALID. If there was a barrier on the place, the barrier is removed.
FAIL
The place becomes VALID only when the containing job becomes FAILED. At the same time, a barrier is added to the place in order to preserve the trace consistency, since it is not legal for an output of a FAILED job to be VALID unless there is a barrier on the output place.
DONE
This is a combination of the two cases above. The place becomes VALID only when the containing job completes, when it becomes either VALID or FAILED. At the same time, a barrier is added or removed depending on the status of the job.