PMCORE-2196 Migrate to queue job - Cron File: actionsByEmailEmailResponse.php
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
parent
5bee4352b5
commit
f44f3ae565
@@ -59,7 +59,7 @@ class ResponseReader
|
||||
try {
|
||||
if (!extension_loaded('imap')) {
|
||||
G::outRes(G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", ['php_imap']) . "\n");
|
||||
exit;
|
||||
return;
|
||||
}
|
||||
if (PMLicensedFeatures
|
||||
::getSingleton()
|
||||
|
||||
@@ -17,6 +17,7 @@ use G;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use ldapadvancedClassCron;
|
||||
use NotificationQueue;
|
||||
use ProcessMaker\BusinessModel\ActionsByEmail\ResponseReader;
|
||||
use ProcessMaker\BusinessModel\Light\PushMessageAndroid;
|
||||
use ProcessMaker\BusinessModel\Light\PushMessageIOS;
|
||||
use ProcessMaker\Core\JobsManager;
|
||||
@@ -543,4 +544,16 @@ class Task
|
||||
};
|
||||
$this->runTask($job);
|
||||
}
|
||||
|
||||
/**
|
||||
* This executes an actions by email responses.
|
||||
*/
|
||||
public function actionsByEmailResponse()
|
||||
{
|
||||
$job = function() {
|
||||
$responseReader = new ResponseReader();
|
||||
$responseReader->actionsByEmailEmailResponse();
|
||||
};
|
||||
$this->runTask($job);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user