AutoSys Workload Automation

  • 1.  How to kill stuck job (status:running)

    Posted Sep 20, 2016 05:52 AM

    Its running since yesterday in autosys.

    I cannot kill it - I can change its status, but I can see its running, even if the status was changed. :/

    any ideas?. stopping agent does not help.

    Agent is running on windows.

     

    UPDATE..

    Ok I have manage to re-run it - but now I have 2 instances running:

    Sep 20, 2016 12:39:30 PMRUNNING1251062/4BAGALA-SRV
    Sep 19, 2016 8:20:14 PMRUNNING1250504/1BAGALA-SRV

     

    the bottom one is the stuck one..(already finished - but it somehow exist here)



  • 2.  Re: How to kill stuck job (status:running)

    Posted Sep 20, 2016 07:53 AM

    Use Task Manager to extract the PIDS and terminate the processes from there, then change the status of the jobs in Autosys.

    Chris <CJ>



  • 3.  Re: How to kill stuck job (status:running)

    Posted Sep 20, 2016 08:41 AM

    unfortunately - I checked all processes opened on autosys user in task manager....all were closed...

    checked whats inside batches - java jar was there.

    I used jps command to check java processes

    no java jars were running.

    there was no java machines in task manager either.



  • 4.  Re: How to kill stuck job (status:running)

    Posted Sep 20, 2016 09:13 AM

    I was referring to the "job" PIDs and not the "Autosys" PIDs, please terminate those particular PIDs and then change the status of the Autosys jobs.

    Chris <CJ>



  • 5.  Re: How to kill stuck job (status:running)

    Posted Sep 21, 2016 07:47 AM

    Sorry for my dumb question. but how to obtain PID and then use it to kill the job?



  • 6.  Re: How to kill stuck job (status:running)



  • 7.  Re: How to kill stuck job (status:running)

    Broadcom Employee
    Posted Sep 25, 2016 08:35 PM

    And once you have got the corresponding PID, you can use 'taskkill' command to terminate the process (or processes) in Windows.

     

    taskkill /PID 1234 /F
    taskkill /pid 1230 /pid 1231 /pid 1245

     

    Note: The /f flag is kills the process forcefully. 

     

    Hope this helps!

     

    Regards,

    Avinash



  • 8.  Re: How to kill stuck job (status:running)

    Posted Sep 27, 2016 05:40 AM

    Thanks for your replies.

    As I said before - all related PIDs have been killed

    the bat and the processes inside bat lanuched by autosys.

    there are no processes ran on the autosys account...but I still see it as running :/