Return-Path: X-Original-To: apmail-ofbiz-dev-archive@www.apache.org Delivered-To: apmail-ofbiz-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 622FF18275 for ; Mon, 4 Jan 2016 09:15:40 +0000 (UTC) Received: (qmail 97617 invoked by uid 500); 4 Jan 2016 09:15:40 -0000 Delivered-To: apmail-ofbiz-dev-archive@ofbiz.apache.org Received: (qmail 97583 invoked by uid 500); 4 Jan 2016 09:15:40 -0000 Mailing-List: contact dev-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list dev@ofbiz.apache.org Received: (qmail 97566 invoked by uid 99); 4 Jan 2016 09:15:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jan 2016 09:15:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DECAA2C1F64 for ; Mon, 4 Jan 2016 09:15:39 +0000 (UTC) Date: Mon, 4 Jan 2016 09:15:39 +0000 (UTC) From: "Nicolas Malin (JIRA)" To: dev@ofbiz.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (OFBIZ-6784) JobSandbox : reload crashed job maybe duplicate pending service MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OFBIZ-6784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nicolas Malin updated OFBIZ-6784: --------------------------------- Attachment: (was: OFBIZ-6784.patch) > JobSandbox : reload crashed job maybe duplicate pending service > --------------------------------------------------------------- > > Key: OFBIZ-6784 > URL: https://issues.apache.org/jira/browse/OFBIZ-6784 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Trunk > Reporter: Nicolas Malin > Assignee: Nicolas Malin > Labels: jobsandbox > > When the JobPoller run reloadCrashedJobs() after an OFBiz restart, if you have a large service that crash that already replenish the pool receive a new run instant for it. > Example: If you have a service like loadExternalOrder that run each hours. You stop your OFBiz during their activity and at restart you have : > * job1 loadExternalOrder RUNINNG > * job2 loadExternalOrder PENDING at t+1h (normal schedule) > * job1.1 loadExternalOrder PENDING at t+1h (crashed schedule) > I propose to exclude from the process reloadCrashedJobs() all jobs that have already a new scheduled instance -- This message was sent by Atlassian JIRA (v6.3.4#6332)