Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11340

Crashed Scheduled jobs are not getting rescheduled with temporal expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • 17.12.01, 18.12.01
    • framework
    • None

    Description

      Scenario:

      1. Import Schedule service data with temporal expression id.
      2. JobManager creates a child Job with temExprId in pending status when the imported Job is in running status.
      3. Now the parent Job is in running status and the child Job, which is in pending status, transitions to queued status if Job Poll size is full. In this scenario, if we restart the server then both Jobs are Crashed and JobManager creates child Job without tempExprdId. 

       
      Example: Please refer to the attached screenshots.

      1. Job 32993100 is imported with TempExprId
      2. When Job 32993100 is in running status, then Job 32993101 is created with TempExprId in pending status but job 32993101 is moved to Queued status if job poll size is full.
      3. If we restart the server then JobPoller runs reloadCrashedJobs() and both jobs are crashed and JobManager creates two child jobs (32993200, 32993201) without TempExprId.

      So in this case of missing temporal expression id job manager will not be able to schedule further jobs.
       
      Expected: If Queued Job (32993101) is crashed then its corresponding Job (32993200) should have TempExprId to continue further scheduling. 

      Attachments

        1. OFBiz_ JobSandbox_1.png
          119 kB
          Mohammed Rehan Khan
        2. OFBiz_ JobSandbox_2.png
          172 kB
          Mohammed Rehan Khan
        3. OFBIZ-11340.patch
          2 kB
          Mohammed Rehan Khan
        4. OFBIZ-11340.patch
          1 kB
          Mohammed Rehan Khan

        Activity

          People

            nmalin Nicolas Malin
            rehan.khan Mohammed Rehan Khan
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: