job interface move

This commit is contained in:
Yuri Kuznetsov
2020-06-23 16:59:00 +03:00
parent 42f6dab4ce
commit 5c0eec9c83
10 changed files with 10 additions and 9 deletions

View File

@@ -358,7 +358,7 @@ class CronManager
$obj->run($data, $job->get('targetId'), $job->get('targetType'));
}
protected function runService(JonEntity $job)
protected function runService(JobEntity $job)
{
$serviceName = $job->get('serviceName');

View File

@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Jobs;
namespace Espo\Core\Jobs;
interface Job
{

View File

@@ -27,7 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Jobs;
namespace Espo\Core\Jobs;
use Espo\Entities\ScheduledJob;

View File

@@ -32,6 +32,7 @@ namespace Espo\Jobs;
use Espo\Core\{
CronManager,
Utils\Config,
Jobs\Job,
};
class ProcessJobQueueE0 implements Job

View File

@@ -32,6 +32,7 @@ namespace Espo\Jobs;
use Espo\Core\{
CronManager,
Utils\Config,
Jobs\Job,
};
class ProcessJobQueueQ0 implements Job

View File

@@ -32,6 +32,7 @@ namespace Espo\Jobs;
use Espo\Core\{
CronManager,
Utils\Config,
Jobs\Job,
};
class ProcessJobQueueQ1 implements Job

View File

@@ -29,7 +29,7 @@
namespace Espo\Jobs;
use \Espo\Core\Exceptions;
use Espo\Core\Exceptions;
class ProcessWebhookQueue extends \Espo\Core\Jobs\Base
{

View File

@@ -29,7 +29,7 @@
namespace Espo\Jobs;
use \Espo\Core\Exceptions;
use Espo\Core\Exceptions;
class SendEmailNotifications extends \Espo\Core\Jobs\Base
{

View File

@@ -35,10 +35,9 @@ use Espo\Core\{
CronManager,
ServiceFactory,
ORM\EntityManager,
Jobs\JobTargeted,
};
use Espo\Jobs\JobTargeted;
use Espo\Entities\ScheduledJob;
class CheckEmailAccounts implements JobTargeted

View File

@@ -35,10 +35,9 @@ use Espo\Core\{
CronManager,
ServiceFactory,
ORM\EntityManager,
Jobs\JobTargeted,
};
use Espo\Jobs\JobTargeted;
use Espo\Entities\ScheduledJob;
class CheckInboundEmails implements JobTargeted