How to Process Webhook Queue every second

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lcampos
    Junior Member
    • Nov 2018
    • 5

    How to Process Webhook Queue every second

    Hello,

    I'm trying to find a way to run the "Process Webhook Queue" cronjob every second, or at least something in the range of seconds. I know for a fact that the crontab minimum timer is every minute and I will probably need another way to schedule this with a custom timer.
    I found the job file inside "application/Espo/Classes/Jobs/ProcessWebhookQueue.php", but when executed resulted in "PHP Fatal error: Uncaught Error: Interface 'Espo\Core\Job\JobDataLess' not found"

    Am I missing something or is there a natively supported way to do this?
    Espo version 7.0.8
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi,

    It seems you didn't include bootstrap.php, so the autoloading is not initialized.

    You can run a job with a command:

    Code:
    bin/command run-job ProcessWebhookQueue
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • lcampos
      Junior Member
      • Nov 2018
      • 5

      #3
      This solved my problem, thank you very much.
      And I guess this command also works with every other cronjob in the system too

      Comment

      Working...