Original Message:
Sent: Apr 25, 2023 12:54 PM
From: Sagar Kunwar
Subject: look back condition not satisfied even if it is Success
Even if that's the case. My original jobs are in different boxes, the box is running and the Job has success status and the dependent successor job is activated. Still the condition is false. It's not solving the problem.
Original Message:
Sent: Apr 25, 2023 12:46 PM
From: john egerter
Subject: look back condition not satisfied even if it is Success
Lookback assumes the original job changed its Status sometime BEFORE the conditioned job begins. If both jobs are in the same box, they both Activate at the same time; there is no "sometime before". It's similar to having the two jobs floating without a Box; as I mentioned, lookback doesn't do anything useful in that configuration.
Original Message:
Sent: Apr 24, 2023 11:27 PM
From: Sagar Kunwar
Subject: look back condition not satisfied even if it is Success
I mentioned there may be typos here while typing but there is none in the original one.
Can you tell me why did you add second job inside another box? Apart from that I don't see any difference.
Original Message:
Sent: Apr 24, 2023 07:58 PM
From: john egerter
Subject: look back condition not satisfied even if it is Success
Sagar,
Your JIL definitions are riddled with typos. AutoSys is very unforgiving when it comes to things not being 100% accurate. Compare these simplified definitions line-by-line with what you have:
insert_job: Job_Box1
job_type: box
owner: sagar
date_conditions: y
days_of_week: mo,tu,we,th,fr,sa,su
start_times: "13:00"
term_run_time: 45
insert_job: Job_A
job_type: cmd
description: do file gen
machine: machine1
owner: sagar
box_name: Job_Box1
max_run_alarm: 45
profile: /path/bin/profile.sh
send_notification: n
std_out_file: $STDOUT
std_err_file: $STDERR
command: echo "Job A success"
insert_job: Job_Box2
job_type: box
owner: sagar
date_conditions: y
days_of_week: mo,tu,we,th,fr,sa,su
start_times: "13:45"
insert_job: Job_B
job_type: cmd
description: check file gen finish
machine: machine1
owner: sagar
box_name: Job_Box2
condition: s(Job_A,01.00)
profile: /path/bin/profile.sh
send_notification: n
std_out_file: $STDOUT
std_err_file: $STDERR
command: echo "Job B success"
Original Message:
Sent: Apr 24, 2023 03:14 PM
From: Sagar Kunwar
Subject: look back condition not satisfied even if it is Success
My Jobs are somewhat like this.. There may be typo while typing here but just think there are none in my original jobs. When I use s(Job_A,0) It is working fine. Only when I add time it doesn't do what I want.
Box:
inert_job: Job_Box
owner: sagar
alarm_if_fail: n
alarm_if_terminated:y
days_of_week:mo,tu,we,th.fr.sa.su
start_times: "13:00"
Job A:
insert_job: Job_A
job_type: cmd
description: check file gen
machine: machine1
owner: sagar
box_name: Job_Box
max_run_alarm: 45
alarm_if_fail: n
alarm_if_terminated: y
n_retrys: 10
date_conditions: y
run_window: "13:00-13:45"
days_of_week: mo,tu,we,th,fr,sa,su
start_times: 13:00"
profile: /path/bin/profile.sh
send_notification: n
std_out_file: $STDOUT
std err_ file: $STDERR
command: echo "success"
Job B:
insert_job: Job_B
job_type: cmd
description: check file gen fin
machine: machine1
owner: sagar
box_name: Job_Box
command:s(Job_A,01.00)
max_run_alarm: 45
alarm_if_fail: n
alarm_if_terminated: y
n_retrys: 10
date_conditions: y
run_window: "13:45-14:30"
days_of_week: mo,tu,we,th,fr,sa,su
start_times: 13:45"
profile: /path/bin/profile.sh
send_notification: n
std_out_file: $STDOUT
std err_ file: $STDERR
command: echo "success"
Original Message:
Sent: Apr 24, 2023 10:17 AM
From: Clark Ammons
Subject: look back condition not satisfied even if it is Success
Greetings Sagar,
You are correct in the assumption that the job should be triggered without any other conditions if jobA has gone to success only within that 1 hour; if JobA was to go to success at 10:00 am then the condition would be active from 10 to 11 then the condition would turn false again after 11AM. Maybe it is just me but when I was looking at your condition I see a space between the JobA, 01.00 * copied from your message success(job_a, 01.00) condition ** If you are putting a space between then you have an issue on that. If it looks like s(job_a,01.00) then the job which has that condition should be working. What version of AutoSys are you running? Have you tried to just validate that the condition of lookback for a new success works; s(job_a,0) just to ensure that it is working? Is there any other conditions on the event you are trying to trigger? If all that is there then please provide all the JIL to look at so that it is easier to trouble shoot.
Good luck!
Clark (ca the other one)
Original Message:
Sent: Apr 23, 2023 04:30 AM
From: Jose Lopez
Subject: look back condition not satisfied even if it is Success
Hi,
You are right, job should start if joba has gone to success within the last hour
Does your job have any other starting condition?
Best regards
José
Original Message:
Sent: Apr 21, 2023 10:44 AM
From: Sagar Kunwar
Subject: look back condition not satisfied even if it is Success
Hi there,
FYI, I am new to autosys.
I am trying to use success(job_a, 01.00) condition, which I believe according to docs check if job_a is successsfull within the last hour or not right?
But in autosys workload automation. It is always showing condtion not satisfied. May I know why? Does it depends on any other things. I tested it by manually changing the status of job_a to Success. But in successor job the condition never satisfied.