You can use threads to schedule operating system
processing time.
The archive and delete background tasks
use threads to move content. Threads are units of processing time
that are scheduled by the operating system.
Procedure
- Go to the c10_location/webapps/p2pd/WEB-INF/cm/tasks/config directory.
- Using an XML text editor, open the archiveTask.xml file.
- For example, to configure three threads that execute from
midnight to 8.00 a.m., one thread that executes from 8.00 a.m. to
5.00 p.m., no threads that execute from 5.00 p.m. to midnight, and
all threads that run every day of the week, add the following <executionPeriods> XML
element as a child element of the backgroundTask element.
<executionPeriods>
<executionPeriod>
<threads>3</threads>
<startTime>
<hour>00</hour>
<minute>00</minute>
</startTime>
<stopTime>
<hour>08</hour>
<minute>00</minute>
</stopTime>
<days>
<day>Monday</day>
<day>Tuesday</day>
<day>Wednesday</day>
<day>Thursday</day>
<day>Friday</day>
<day>Saturday</day>
<day>Sunday</day>
</days>
</executionPeriod>
<executionPeriod>
<startTime>
<hour>08</hour>
<minute>00</minute>
</startTime>
<stopTime>
<hour>17</hour>
<minute>00</minute>
</stopTime>
<days>
<day>Monday</day>
<day>Tuesday</day>
<day>Wednesday</day>
<day>Thursday</day>
<day>Friday</day>
<day>Saturday</day>
<day>Sunday</day>
</days>
</executionPeriod>
</executionPeriods>
- Save and close the file.