List out Autosys Job failures for a particular time window - autosys

Hi How can we list out failed jobs that occurred in a particular timeframe.
Suppose I wants to list of failed jobs that's occured between 10:00 AM to 11:00 AM .
Can anyone please suggest the command to get this ?

Related

How to send an email if autosys box is running from previous scheduled run at the time of next scheduled run

i have an autosys box which runs at 7AM and 8AM daily. I understand that if 7AM execution does not finish till 8AM, My box will not be triggered at 8AM again.
I need to send an email from autosys to business stating that previous job is already running that is why next execution is not happening at 8AM. How can i do that? Please try to give the JIL file for it.
Thanks in advance
It all depends how have you licensed Autosys CA schedulers for your project. In our firm, we have configuration setup wherein if an Autosys job fails/terminates/maxruns/etc., it creates high severity incident.
Coming to your query, there's no straight forward way that i am aware of. First, normally we do not schedule same job in frequent intervals, unless it is a reporting job.
Still, if you want the job to generate some sort of alert if first execution exceeds start time of second execution, then you can add max_run_alarm or term_run_time in your JIL as per requirement and set it for 60 min since that's the interval between two executions.
Here is what i have added my script JIL for a data loader job :
max_run_alarm: 150
alarm_if_fail: y
alarm_if_terminated: y
box_terminator: y
term_run_time: 780
Which parameter you want to use will depend on your requirement. If you want to kill the first job then use term_run_time parameter so that second execution "might" start or use max_run_alarm parameter if you just want to send a MAX ALARM notification.
I use both! Hope this was useful.

ADX Command activity timing out after 1 hour despite specifying 2 hours of timeout

I am using ADX Command activity in ADFv2 (Azure Data Factory) to append data to one of the Kusto tables. But very frequently this fails throwing an error after an hour. If the underlying activity finishes within an hour, it succeeds but if it tries to run beyond 1 hour, it is terminated (times out).
When I check the operation status through Kusto Explorer on the basis of operations id that I get in the ADF error, I see that after 59 mins, the operation has failed
"The admin command execution timed out at..."
This is happening despite specifying 2 hours timeout for the ADX Command activity in the data factory. Why is that then timing out only after an hour? How do I avoid this?
ADX command activity limits the execution time by the specified Command timeout parameter where the limit is 1 hour. Please see the docs
ADX Command activity - Command timeout

Autosys Can a job run multiple instance at the same time

I am trying to understand autosys job. Suppose I have Job A that runs every 15 minutes. Suppose for some reason if Job A takes more than 15 minutes, will another instance of it run or it will wait for the job to finish before running another instance?
In my experience, if the previous job run is still running, another instance will not run if the next scheduled time comes. The next time the job runs is when the previous run is finished and the next scheduled time comes.
Another user also experienced this according to this answer.
I did not find any AutoSys documentation that officially confirms what happens in this situation, but I guess the best way to find out is to test it on your AutoSys instance.
I have experienced this first hand and can confirm that there won't be two instances in the mentioned scenario. The job will wait on the previous run to complete and will immediately kick off the next instance if the time condition is met before the previous completes.
But this will be the case only when the job is in running state, if the job is in any other state it will kick off based on the given start_time condition.

Oracle - SQL DEVELOPER Scheduled job failed error #54

I have Schedule job named JOB_PUNI_ZAL_3B that starts every day at 07:00. When type in Developer
select * from USER_SCHEDULER_JOB_RUN_DETAILS where job_name = 'JOB_PUNI_ZAL_3B';
ERROR MESSAGE IS:
ORA-00054 resource busy and acquire with NOWAIT specified
The problem here was that when i schedule JOB to run procedure, a few min ago doing another scheduled procedure, and in the moment when this starting, the previous didn't finish, and they targeting the same table.

how to create a wait job in informatica

My requirement is to create a job in informatica which will run for every 15 min and look for a status column in abc table.If it is “Approved” THEN It will exit and kick off the rest of the jobs.
If the status is not approved it will not do anything and run after 15 min.This process wil continue until we have a approval status.
So, No matter what happens in the above two scenarios,This process will run in every 15 minutes.
I have worked on the same requirement in unix using loops and conditional statments but I am not sure how this can be achieved using informatica.Could you please help me on this.
Regards,
Karthik
I would try adding a scheduler that runs every 15 minutes. The best way that I've found to "loop" sessions in Informatica is:
run the session once, check if it failed using conditional links
if it did fail, run a timer task for an amount of time (a minute, an hour, whatever)
then try to run the same session again by copying and pasting the session up ahead of the timer task, and repeat a few times as necessary.
So if you added a scheduler into the mix, you could set the scheduler to have the workflow run every 15 minutes, and have the timer tasks halt the workflow for 4 or 5 minutes each. Then you could use SESSSTARTTIME function in some pre/post-session task to determine when the scheduler will fire off again and simply abort the workflow before that time.

Resources