PMCORE-2196 Migrate to queue job - Cron File: actionsByEmailEmailResponse.php

This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-09-28 12:43:12 -04:00
committed by Julio Cesar Laura Avendaño
parent 5bee4352b5
commit f44f3ae565
4 changed files with 44 additions and 5 deletions

View File

@@ -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);
}
}