Skip to Content
author's profile photo Former Member
Former Member

Job hangs in Running status even if the precondition expression evaluates to False

We have a Job Chain with the following configuration & scheduling


JOB CHAIN (Scheduled every 30 mins round the clock)

STEP 01

STEP 02 (Precondition using Time window to run only 4 specific times of the day)


Step 02 precondition expression when evaluates to FALSE, not always but 5-10% of the time, the step stuck in "Running" state instead of final status as "Skipped"


I would appreciate if anyone can provide me any insight of this issue


Let me know if you need any additional details.


Thanks,

Bhushan

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on May 12, 2014 at 07:20 AM

    Hey Bhushan,

    What is your CPS build version?

    What is the exact pre-condition? you mentioned 5-10% of the time, so the rest of the time the status is "skipped"?

    Its either a bug or the pre-condition evaluation may be TRUE for a fraction of time when it is being calculated.

    If it's an old build, it may be a bug.If you search for your build version in the SAP notes, you will get the list of bug fixes done in the build next to your current build. That is good starting point if you think it is a bug.

    Thanks

    Nanda

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 12, 2014 at 01:22 PM

    Hi Bhushan,

    Could you please let me know when the time window is open ? is it open for more than 30 minutes at a time?

    You can check this on the 'Opens At' tab of the time window.

    Pre-conditions and time windows are binary, they are true/open or false/closed. I have never witnessed anything like this and suspect there might be something wrong with your time window.

    Could you please provide us with screenshots of the job that was running when it should not have been and then a screenshot of the 'Opens At' tab of the time window for the time the job that was not supposed to start started.

    Regards,

    HP

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 12, 2014 at 04:09 PM

    Thanks Nanda & HP for taking time and replying to the issue. Here are the details that you requested:

    Build - M33.85-65736

    Precondition is based on TimeWindow = <TW Name>, TimeWindow Status = Open & Time Zone specified

    When I say 5-10% time, yes, rest of the time it works as expected and the job gets skipped. When the Precondition evaluates to TRUE it 100% does the job and works good. Problem is only when the condition evaluates to FALSE

    Time Window is open for 29 mins.

    STEP 02 is supposed to run at 2 PM, So Time Window will be open from 2:00:00 PM and closes at 2:29:01 PM to give enough time for STEP 01 to complete since Job Chain is scheduled to run every 30 mins (12, 12:30, 1, 1:30 and so on)

    Similarly for other three instances for that day.

    At time point I dont have the job which shows STEP 02 in "Running Status" where it should have been skipped since we do not keep jobs later than 20 instances

    About time window, I already explained it above but below is the screen shot of opens at:

    Thanks,

    Bhushan


    Capture1.JPG (24.1 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.