[ 
https://issues.apache.org/jira/browse/OFBIZ-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798787#action_12798787
 ] 

Scott Gray commented on OFBIZ-2974:
-----------------------------------

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.

> JobManager.reloadCrashedJobs fails to reload crashed jobs
> ---------------------------------------------------------
>
>                 Key: OFBIZ-2974
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2974
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Critical
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to