Page 1 of 1

Laravel Jobs wait forever

Posted: 21 Jul 2021, 17:57
by megatronec
Hi Aimeos, I have an issue when run this artisan jobs:

php artisan aimeos:jobs "order/email/payment customer/email/account"

Executing Aimeos jobs "order/email/payment" for "default"
Executing Aimeos jobs "customer/email/account" for "default"

But then it "waits" forever until I press Ctrl+C

The problem is that it creates 3 processes:
gncecuco 3548261 5.7 0.0 527400 42288 pts/17 Sl+ 10:53 0:00 /opt/cpanel/ea-php72/root/usr/bin/php artisan aimeos:jobs order/email/payment cus
gncecuco 3548271 0.2 0.0 341124 20892 pts/17 SN+ 10:53 0:00 /opt/cpanel/ea-php72/root/usr/bin/php artisan aimeos:jobs order/email/payment cus
gncecuco 3548272 0.0 0.0 341128 19900 pts/17 SN+ 10:53 0:00 /opt/cpanel/ea-php72/root/usr/bin/php artisan aimeos:jobs order/email/payment cus

If I run the command in a cron every 2 minutes, the processes overload the server and crash the application.

Laravel 7.4
AIMEOS 2020.4
Linux on shared server with cpanel.

Thanks in advance.

Re: Laravel Jobs wait forever

Posted: 22 Jul 2021, 05:19
by aimeos
- Does this also happen if you execute the jobs by hand?
- Is there a difference if you execute one job instead of both at once?
- Check by adding debug statements if there's any activity in the jobs or if they wait for something

Re: Laravel Jobs wait forever

Posted: 22 Jul 2021, 14:53
by megatronec
Yes, execute by hand in console:
php artisan aimeos:jobs "order/email/payment customer/email/account"

same result

Execute one job by hand:
php artisan aimeos:jobs "order/email/payment"

same result
The console only shows: Executing Aimeos jobs "order/email/payment" for "default" and stay there until I press Ctrl+C

Where is the job "order/email/payment" so I can put debug statements?

Thanks in advance

Re: Laravel Jobs wait forever

Posted: 23 Jul 2021, 07:09
by aimeos
This is the class that sends the order payment/confirmation e-mails:
https://github.com/aimeos/ai-client-htm ... p#L52-L137