In job_list, multiple W4 entries with same parameters generate incorrect jobd
- Article Type: General
- Product: Aleph
- Product Version: 20
Problem Symptoms:
With the following entries in $alephe_tab/job_list:
! 2 3 4 5 6 7
!!-!!!!!!!!-!-!!!!!!!!!!!!!!!!!!!!-!!!!!-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-!!!!!!
W4 06:00:00 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^...
W4 08:00:00 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^...
W4 10:00:00 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^...
W4 12:00:00 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^...
W4 14:00:00 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^...
W4 16:00:00 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^...
the first (6:00:00) job executes successfully, but the other five do not.
The $alephe_scratch/jobd.log shows that, while the 6:00 AM run is correct:
Current time: Friday 22 March 2013 06:00:00 [1363950000]
Performing Jobs:
----------------
XXX50 p_cir_13 email XXX50,cir13_Recalls,DOCS^JUNCT^RESV^SWC^ULIB,O,Y,,00,Y,N,Y,,Y,
the 8:00, 10:00, 12:00, 14:00, and 16:00 jobd entries are malformed:
XXX50 p_cir_13 XXX5 email ,cir13_Recalls,DOCS^JUNCT^RESV^SWC^ULIB,O,Y,,00,Y,N,Y,,Y,
Cause:
The job_list can't have multiple entries for the same job with the same parameters with "Wn" (weekly) in column 1.
Resolution:
Use a job_list.conf "Dn" code -- intended for jobs running multiple times on the same day....
job_list.conf has this "D1" entry:
!1 2 3 4 5
!!----!-!!!!!-!!!!!-!!!!!
D1 D 09:00 17:00 01:00
Make a "D2" entry like this:
!1 2 3 4 5
!!----!-!!!!!-!!!!!-!!!!!
D2 D 06:00 16:00 02:00
The above is saying: run this job every 2 hours between 6:00 and 16:00.
Then create the following entries in job_list (where "00" is Sunday and "06" is Saturday):
00 D2 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^...
01 D2 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^...
02 D2 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^...
03 D2 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^ ...
04 D2 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^...
05 D2 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^...
06 D2 Y email XXX50 p_cir_13 XXX50,cir13_Recalls,DOCS^...
Category: Circulation (500)
Subject: Services
- Article last edited: 10/8/2013