<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Issue in executing scheduler job on Liferay 6.0 CE cluster</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119690854" />
  <subtitle>Issue in executing scheduler job on Liferay 6.0 CE cluster</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119690854</id>
  <updated>2026-04-05T17:41:57Z</updated>
  <dc:date>2026-04-05T17:41:57Z</dc:date>
  <entry>
    <title>RE: Issue in executing scheduler job on Liferay 6.0 CE cluster</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119700536" />
    <author>
      <name>Huy Tran</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119700536</id>
    <updated>2020-08-04T02:52:07Z</updated>
    <published>2020-08-04T02:52:07Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Christoph Rabel:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Wouldn&amp;#39;t it be easier to just disable the job on one server?  e.g. by adding a portlet-ext.properties setting and setting it to true on one server and false on the other service. &lt;br /&gt;Of course, the job won&amp;#39;t run if the enabled node isn&amp;#39;t up, but maybe you can live with that ...&lt;/blockquote&gt;Thanks for your reply.&lt;br /&gt;I don&amp;#39;t know which node is the master and don&amp;#39;t  know how to detect the node&amp;#39;s role on Liferay 6.0 CE. (In Liferay 6.1 CE, the address of the master node is stored in DB with &amp;#34;Lock_.owner&amp;#34;, it is easy to detect the master node through checking from DB )&lt;br /&gt;In addition, I also want the default scheduler(ex: check expiration time of web content, user, etc...) to fire on the master node only.</summary>
    <dc:creator>Huy Tran</dc:creator>
    <dc:date>2020-08-04T02:52:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issue in executing scheduler job on Liferay 6.0 CE cluster</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119692963" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119692963</id>
    <updated>2020-08-03T15:24:41Z</updated>
    <published>2020-08-03T15:24:41Z</published>
    <summary type="html">Wouldn&amp;#39;t it be easier to just disable the job on one server?  e.g. by adding a portlet-ext.properties setting and setting it to true on one server and false on the other service. &lt;br /&gt;Of course, the job won&amp;#39;t run if the enabled node isn&amp;#39;t up, but maybe you can live with that ...</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-08-03T15:24:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issue in executing scheduler job on Liferay 6.0 CE cluster</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119694314" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119694314</id>
    <updated>2020-08-03T13:24:11Z</updated>
    <published>2020-08-03T13:24:11Z</published>
    <summary type="html">6.0 and 6.1? Sure anything is possible, but this backport is all on you.&lt;br /&gt;&lt;br /&gt;Also this is an indicator that maybe it is time for you to start planning an update to maybe a version of the software that was released in the last 5 years...</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2020-08-03T13:24:11Z</dc:date>
  </entry>
  <entry>
    <title>Issue in executing scheduler job on Liferay 6.0 CE cluster</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119690853" />
    <author>
      <name>Huy Tran</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119690853</id>
    <updated>2020-08-03T09:07:13Z</updated>
    <published>2020-08-03T09:07:13Z</published>
    <summary type="html">Hi all,&lt;br /&gt;I&amp;#39;m configuring 2 Liferay 6.0.6 CE with cluster. But I have a problem regarding doing the scheduler job on my cluster env. When deploying a scheduler job on both nodes, the scheduler job is fired on both nodes.&lt;br /&gt;&lt;br /&gt;I found a similar issue here: &lt;a href="https://issues.liferay.com/browse/LPS-25793,"&gt;https://issues.liferay.com/browse/LPS-25793&lt;/a&gt;, this is a bug of Liferay 6.1.0 CE GA1 and earlier versions.&lt;br /&gt;I&amp;#39;ve checked the source code of Liferay 6.1.1 CE(fixed version) and found the differences related to executing scheduler job on the cluster, such as: &lt;br /&gt;- Add new some classes:&lt;br /&gt; &amp;gt; &amp;#34;com.liferay.portal.kernel.scheduler.StorageType&amp;#34;: define the storage type.&lt;br /&gt; &amp;gt; &amp;#34;com.liferay.portal.scheduler.ClusterSchedulerEngine&amp;#34;: contains the methods to check and detect the master/slave node.&lt;br /&gt; &amp;gt; &amp;#34;com.liferay.portal.scheduler.ClusterSchedulerEngine.MemorySchedulerClusterEventListener&amp;#34;: fire when any node to join or depart,  it support to detect and change role (master/slave) of current node.&lt;br /&gt; &amp;gt; &amp;#34;com.liferay.portal.scheduler.ClusterSchedulerEngine.MemorySchedulerClusterResponseCallback&amp;#34;, etc...&lt;br /&gt;- Store the address of the master node in DB(table &amp;#34;Lock_.owner&amp;#34;) and compare that address when checking the role of node.&lt;br /&gt;&lt;br /&gt;Can I port these changes of Liferay 6.1.1 CE to version 6.0.6 CE to fix bug? Are there any obstacles? (I worry about the difference of source code structure)&lt;br /&gt;P/S: I know should not use cluster on Liferay 6.0. But for some reason, my customer doesn&amp;#39;t want to upgrade the version.&lt;br /&gt;Thanks.</summary>
    <dc:creator>Huy Tran</dc:creator>
    <dc:date>2020-08-03T09:07:13Z</dc:date>
  </entry>
</feed>
