Laravel Jobs wait forever

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
megatronec
Posts: 2
Joined: 21 Jul 2021, 17:16

Laravel Jobs wait forever

Post by megatronec » 21 Jul 2021, 17:57

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.

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: Laravel Jobs wait forever

Post by aimeos » 22 Jul 2021, 05:19

- 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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

megatronec
Posts: 2
Joined: 21 Jul 2021, 17:16

Re: Laravel Jobs wait forever

Post by megatronec » 22 Jul 2021, 14:53

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

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: Laravel Jobs wait forever

Post by aimeos » 23 Jul 2021, 07:09

This is the class that sends the order payment/confirmation e-mails:
https://github.com/aimeos/ai-client-htm ... p#L52-L137
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply