From b346236789181e7a72a21f0cb9f938f3af3c4d0e Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Sun, 22 Apr 2012 18:56:15 +0200 Subject: [PATCH] Adding a mechanism to delay actions in the queue. --- .../actions/heritrix-archive-set.xpl | 168 +++++++++--------- archiver/pipelines/scheduler.xpl | 4 +- 2 files changed, 85 insertions(+), 87 deletions(-) diff --git a/archiver/pipelines/actions/heritrix-archive-set.xpl b/archiver/pipelines/actions/heritrix-archive-set.xpl index db78ab8..799c167 100644 --- a/archiver/pipelines/actions/heritrix-archive-set.xpl +++ b/archiver/pipelines/actions/heritrix-archive-set.xpl @@ -6,92 +6,11 @@ --> - - - - - queue.xml - write - xquery - - - / - - - - .xml - - - - - - - - - - - - - - - - - - - - - - - - - - index.xml - - write - document - - - - - - - - - - - - - @@ -151,7 +70,7 @@ for $a in /queue/action where $a/@uuid = $(uuid) return - + @@ -170,7 +89,7 @@ for $a in /queue/action where $a/@uuid = $(uuid) return - + @@ -189,10 +108,89 @@ for $a in /queue/action where $a/@uuid = $(uuid) return + + + + + + + queue.xml + write + xquery + + + / + + + + + + + + + + + + + + + + + + + + + + + + + + + index.xml + + write + document + + + + + + + + + + - + + + + + + + + + + into $q, + +for $a in /queue/action where $a/@uuid = $(uuid) return + update + delete $a + + ]]> + + + + + + + diff --git a/archiver/pipelines/scheduler.xpl b/archiver/pipelines/scheduler.xpl index fb02905..24ac531 100644 --- a/archiver/pipelines/scheduler.xpl +++ b/archiver/pipelines/scheduler.xpl @@ -6,7 +6,7 @@ --> + xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:exist="http://exist.sourceforge.net/NS/exist" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"> @@ -20,7 +20,7 @@