Triggering running a job from terminal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tedf20
    Member
    • Dec 2016
    • 36

    Triggering running a job from terminal

    Hi! I need to trigger CheckEmailAccounts job manually to debug it and improve. As for now I am changing cron scheduling in the job to the closest possible time and waiting until it runs. Is it possible to trigger its running manually and instantly?

    I tried
    Code:
    cd application && php -r "require 'Espo/Modules/Crm/Jobs/CheckEmailAccounts.php'; run([], '58b7090e3644ee829');"
    , but it returns
    Code:
    PHP Fatal error: Class 'Espo\Core\Jobs\Base' not found in /var/www/html/crm/application/Espo/Modules/Crm/Jobs/CheckEmailAccounts.php on line 35
    EspoCRM version is 4.8.2
    Last edited by tedf20; 02-15-2019, 11:30 AM.
Working...