[Dart] Change server "batch processing" frequency?
Matt England
mengland at mengland.net
Sat Mar 25 00:11:07 EST 2006
Actually, the real answer is (after a bit of self education):
At 3/24/2006 10:32 PM, Matt England wrote:
>At 3/24/2006 10:26 PM, Matt England wrote:
>>Is there I way that I can change the frequency of this batch processing
>>to run more often?
From http://svn.na-mic.org:8000/svn/Dart/trunk/Dart.pdf rev 316 p23:
We changed the line below:
<Schedule>0 0/10 * * * ?</Schedule>
to
<Schedule>*/5 * * * * ?</Schedule>
to run every 5 seconds. That's much better. :)
Bigger document excerpt below.
-Matt
"5.3.8 Task Configuration
<!-- Scheduled tasks. The Schedule tag is in cron format. -->
<Task>
<Type>dart.server.task.QueueManager</Type>
<Schedule>0 0/10 * * * ?</Schedule>
<Properties>
<Property name="MaxTasks">10</Property>
</Properties>
</Task>
Tasks configured in the Project.xml file are periodically scheduled. Tasks
must implement the
dart.server.task.Task interface. In the above example, the
dart.server.task.QueueManager is
scheduled to run every 10 minutes. The QueueManager class processes other
Tasks that have been placed
24 Chapter 5. Server Setup
in the TaskQueue. The Properties tag specifies settings that are passed
into the Task when it executes.
For QueueManager, the "MaxTasks" property indicates how many queued tasks
will be processed at during
each execution, providing a "throttling" mechanism.
"
More information about the Dart
mailing list