Platform Explorer / Nuxeo Platform LTS 2019 10.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.

Resolution Order

137
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

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>