Skip to Content

max runtime for xsjob

Hi experts,

Has anybody written any code that will prevent an XS job from running past a certain time limit threshold?  I'd like to kill my job if it has been running for more than one hour for example.

Thanks,

-Patrick

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 08, 2015 at 06:08 AM

        Hi Patrick,

        You can write script to monitor the table and kill the job based on these.

        Catalog  table  "_SYS_XS"."JOB_LOG"  can help you for these.

        If it gives error "Result job is running" then your job is running.

        Once finished it will be added to catalog table.

       Hope this helps😊.

        -

        Pratik

    Add comment
    10|10000 characters needed characters exceeded