Hi,
I'm having troubles when I try to schedule a simple test pipeline. Here's my 'invoker' xpl: <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:oxf="http://www.orbeon.com/oxf/processors"> <p:processor name="oxf:scheduler" xmlns:p="http://www.orbeon.com/oxf/pipeline"> <p:input name="config"> <config> <start-task> <name>test</name> <start-time>now</start-time> <interval>5000</interval> <processor-name>oxf:pipeline</processor-name> <input name="config" url="oxf:/test.xpl"/> </start-task> </config> </p:input> </p:processor> </p:config> As you can see, I'm just following the example given in http://www.orbeon.com/ops/doc/processors-scheduler However, test.xpl is not being scheduled. Is there something special I should take care of? Will the instance be available for the scheduled pipeline? One last thing: supposing I succeed scheduling my task(s), how can I retrieve the running tasks list? Best Regards, Pablo. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Pablo,
You will need to add the following to your properties.xml in config <property type="string" name="oxf.context-initialized-processor.input.config" value="oxf:/scheduled/schedule-tasks.xpl"/> As for the list of scheduled tasks. I think that might be a custom processor although I'm not sure Ryan Ryan Puddephatt Web Developer TFX Group 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: [hidden email] [mailto:[hidden email]] >Sent: 24 January 2006 00:16 >To: [hidden email] >Subject: [ops-users] Scheduler troubleshooting > >Hi, >I'm having troubles when I try to schedule a simple test pipeline. Here's >my 'invoker' xpl: > ><p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" >xmlns:oxf="http://www.orbeon.com/oxf/processors"> ><p:processor name="oxf:scheduler" >xmlns:p="http://www.orbeon.com/oxf/pipeline"> ><p:input name="config"> ><config> ><start-task> ><name>test</name> ><start-time>now</start-time> ><interval>5000</interval> ><processor-name>oxf:pipeline</processor-name> ><input name="config" url="oxf:/test.xpl"/> ></start-task> ></config> ></p:input> ></p:processor> ></p:config> > >As you can see, I'm just following the example given in >http://www.orbeon.com/ops/doc/processors-scheduler > >However, test.xpl is not being scheduled. Is there something special I >should take care of? Will the instance be available for the scheduled >pipeline? >One last thing: supposing I succeed scheduling my task(s), how can I >retrieve the running tasks list? >Best Regards, >Pablo. > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by pnaveas
[hidden email] wrote:
> Hi, > I'm having troubles when I try to schedule a simple test > pipeline. Here's my 'invoker' xpl: > > <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:oxf="http://www.orbeon.com/oxf/processors"> > <p:processor name="oxf:scheduler" xmlns:p="http://www.orbeon.com/oxf/pipeline"> > <p:input name="config"> > <config> > <start-task> > <name>test</name> > <start-time>now</start-time> > <interval>5000</interval> > <processor-name>oxf:pipeline</processor-name> > <input name="config" url="oxf:/test.xpl"/> > </start-task> > </config> > </p:input> > </p:processor> > </p:config> > > As you can see, I'm just following the example given in > http://www.orbeon.com/ops/doc/processors-scheduler > > However, test.xpl is not being scheduled. Is there something special > I should take care of? The above looks ok. Do you see anything in the logs? > Will the instance be available for the scheduled pipeline? No, scheduled tasks run in the background, and they do not have access to a context that would be passed to them automatically upon task creation. I reckon that this would be nice. If you need to pass information to a task you will need to store it somewhere, for example in the Application scope, using the Scope serializer and generator. > One last thing: supposing I succeed scheduling my task(s), how can I > retrieve the running tasks list? There is no mechanism right now to retrieve the list of scheduled tasks. This could be done with the Java processor, or by enhancing the Scheduler processor. -Erik -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Ryan Puddephatt
Ryan Puddephatt wrote:
> You will need to add the following to your properties.xml in config > > <property type="string" > name="oxf.context-initialized-processor.input.config" > value="oxf:/scheduled/schedule-tasks.xpl"/> This is correct if you want to register a scheduled task upon application initialization, however you may want to start a task later, for example upon the user accessing a page, etc. -Erik -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |