<?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>Multiple Portal Instances - Cron Scheduler</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=36091122" />
  <subtitle>Multiple Portal Instances - Cron Scheduler</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=36091122</id>
  <updated>2026-04-04T01:50:33Z</updated>
  <dc:date>2026-04-04T01:50:33Z</dc:date>
  <entry>
    <title>RE: Multiple Portal Instances - Cron Scheduler</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113478095" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113478095</id>
    <updated>2019-05-01T02:34:38Z</updated>
    <published>2019-05-01T02:34:38Z</published>
    <summary type="html">Phew -- 6.1, man, that&amp;#39;s going back now. And Sharding! talk about the archives of features &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;I think the answer is that it&amp;#39;s up to you to manage. A portlet is not deployed to a particular instance or to a site. The portlet exists at the server level-- so if you have deployed a TodoList portlet, then Site A on Instance A can add it to a page, but so can Site B n Instance B. It&amp;#39;s considered a global asset for lack of a better term. &lt;br /&gt;&lt;br /&gt;Same goes for the scheduled task. The task itself runs at the server level so if you need to do something for one company but not another, then it&amp;#39;ll be up to you to look up the list of company ids, or the virtual host record from which you can get the company id, etc. &lt;br /&gt;&lt;br /&gt;Sharding shouldn&amp;#39;t matter at all as you simple use the services that Liferay provides and that magic is hidden from you. </summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-05-01T02:34:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: Multiple Portal Instances - Cron Scheduler</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87242957" />
    <author>
      <name>shuchi dave</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87242957</id>
    <updated>2017-03-16T17:01:05Z</updated>
    <published>2017-03-16T17:01:05Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;Any solution found for this issue? Can you please share your findings?&lt;br /&gt;&lt;br /&gt;I am also facing the same for multi-tenant environment, where only central instance is running all schedulers but no other tenant have those schedulers.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Shuchi</summary>
    <dc:creator>shuchi dave</dc:creator>
    <dc:date>2017-03-16T17:01:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: Multiple Portal Instances - Cron Scheduler</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87067717" />
    <author>
      <name>Deniz Burucu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87067717</id>
    <updated>2017-03-13T09:52:32Z</updated>
    <published>2017-03-13T09:52:32Z</published>
    <summary type="html">Do you have a solution for this problem?&lt;br /&gt;&lt;br /&gt;The cron runs only for central instance. How can I run for every instance the job?</summary>
    <dc:creator>Deniz Burucu</dc:creator>
    <dc:date>2017-03-13T09:52:32Z</dc:date>
  </entry>
  <entry>
    <title>Multiple Portal Instances - Cron Scheduler</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=36091121" />
    <author>
      <name>Abhay Chaware</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=36091121</id>
    <updated>2014-03-25T16:20:59Z</updated>
    <published>2014-03-25T16:20:59Z</published>
    <summary type="html">Hi All&lt;br /&gt;&lt;br /&gt;I have a question regarding cron/quartz scheduler in Liferay 6.1.1 CE GA2.   How does it work with multiple instances / shard enabled ?   Does the cron run for *every* instance automatically ?  or it runs in central/portal space, and multiple instances needs to be handled programatically within the job ?  &lt;br /&gt;&lt;br /&gt;e.g. say there is a entity / table called alarmData and it has a column named averageTimeInAlarm. This table is created in every shard / db instance after deployment. averageTimeInAlarm is calculated in batch as a part of cron job. Now, should the cron job implementation have code to connect to each company (instance/shard) and process this, or liferay should automatically run the same cron for every instance ?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Abhay</summary>
    <dc:creator>Abhay Chaware</dc:creator>
    <dc:date>2014-03-25T16:20:59Z</dc:date>
  </entry>
</feed>
