Platform Explorer / Nuxeo Platform LTS 2016 8.10

Component org.nuxeo.ecm.core.work.config

Documentation

The default queue configuration for the work manager, the scheduled job to cleanup the completed work instances, and the related listener.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.core.work.config" version="1.0">

  <documentation>
    The default queue configuration for the work manager,
    the scheduled job to cleanup the completed work instances,
    and the related listener.
  </documentation>

  <extension target="org.nuxeo.ecm.core.work.service" point="implementation">
    <queuing class="org.nuxeo.ecm.core.work.MemoryWorkQueuing"/>
  </extension>
  
  <extension target="org.nuxeo.ecm.core.work.service" point="queues">
    <queue id="default">
      <name>Default queue</name>
      <maxThreads>4</maxThreads>
      <!-- clear completed work instances older than 10 minutes -->
      <clearCompletedAfterSeconds>600</clearCompletedAfterSeconds>
    </queue>
    <queue id="fulltextUpdater">
      <name>Fulltext updater queue</name>
      <!-- fulltext updates are single-threaded to avoid concurrent
        writes to the same column -->
      <maxThreads>1</maxThreads>
      <category>fulltextUpdater</category>
      <!-- clear completed work quickly as it contains (potentially large)
        text data -->
      <clearCompletedAfterSeconds>300</clearCompletedAfterSeconds>
    </queue>
  </extension>

</component>