PMCORE-2190 Migrate to queue job - Cron File: messageeventcron.php - Start Message Events

This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-10-07 09:00:20 -04:00
committed by Julio Cesar Laura Avendaño
parent 041434aa42
commit 5f12753187
3 changed files with 59 additions and 14 deletions

View File

@@ -21,6 +21,7 @@ use ProcessMaker\BusinessModel\ActionsByEmail\ResponseReader;
use ProcessMaker\BusinessModel\Cases as BmCases;
use ProcessMaker\BusinessModel\Light\PushMessageAndroid;
use ProcessMaker\BusinessModel\Light\PushMessageIOS;
use ProcessMaker\BusinessModel\MessageApplication;
use ProcessMaker\Core\JobsManager;
use ProcessMaker\Plugins\PluginRegistry;
use Propel;
@@ -238,7 +239,7 @@ class Task
* Check if some task unassigned has enable the setting timeout and execute the trigger related
*
* @link https://wiki.processmaker.com/3.2/Tasks#Self-Service
*/
*/
function executeCaseSelfService()
{
$job = function() {
@@ -585,4 +586,16 @@ class Task
};
$this->runTask($job);
}
/**
* This execute message event cron.
*/
public function messageeventcron()
{
$job = function() {
$messageApplication = new MessageApplication();
$messageApplication->catchMessageEvent(true);
};
$this->runTask($job);
}
}