OFBiz
  1. OFBiz
  2. OFBIZ-2974

JobManager.reloadCrashedJobs fails to reload crashed jobs

    Details

      Description

      The JobManager.reloadCrashedJobs() method fails to reload most crashed jobs each time it is run, this occurs for two reasons:
      1. The method only supports reloading jobs that have a related RecurrenceInfo, if it has no recurrence information or if it uses the newer temporal expressions then the job is passed over and not reloaded
      2. If the job does have a related RecurrenceInfo then the method checks to see if the next recurrence from now is less than the runTime of the crashed job, this is almost never the case so once again the job isn't reloaded.

        Activity

        Hide
        Marc Morin added a comment -

        Has anyone else run into this? Seems like this is a core problem in the framework.

        Show
        Marc Morin added a comment - Has anyone else run into this? Seems like this is a core problem in the framework.
        Hide
        Scott Gray added a comment -

        Hi Marc,

        At the time I looked back in the commit history and it appears things have always been this way, so I think it's safe to say everyone has run into this, be it knowingly or not.

        Fixing this is on my todo list but in the meantime any patches would be most welcome.

        Show
        Scott Gray added a comment - Hi Marc, At the time I looked back in the commit history and it appears things have always been this way, so I think it's safe to say everyone has run into this, be it knowingly or not. Fixing this is on my todo list but in the meantime any patches would be most welcome.
        Hide
        Scott Gray added a comment -

        Fixed in r899716

        Show
        Scott Gray added a comment - Fixed in r899716
        Hide
        Scott Gray added a comment -

        Also fixed in 9.04 r899718

        Show
        Scott Gray added a comment - Also fixed in 9.04 r899718

          People

          • Assignee:
            Scott Gray
            Reporter:
            Scott Gray
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development