Announcement

Collapse
No announcement yet.

How to Process Webhook Queue every second

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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

    Comment


    • #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...
      X