celery-php icon indicating copy to clipboard operation
celery-php copied to clipboard

Get result not working with amqp backend in Ubuntu 20.04

Open Daniyal-Javani opened this issue 4 years ago • 3 comments

Python client works fine:

>>> from tasks import add
>>> result = add.delay(4, 6)
>>> result.get(timeout=1)
10

But I receive the following error on celery-php client

PHP Fatal error:  Uncaught Celery\CeleryTimeoutException: AMQP task tasks.add([2,2]) did not return after 10 seconds in /vendor/massivescale/celery-php/src/AsyncResult.php:181

Could you please help me to solve this issue?

Daniyal-Javani avatar Jan 19 '21 14:01 Daniyal-Javani

Are you sure you're using a supported version of Celery?

gjedeer avatar Jan 29 '21 20:01 gjedeer

I'm also running Ubuntu 20.04. While the Redis backend works, switching to the AMQP backend fails to return any results from tasks. FWIW, I can see that the tasks succeed in Flower.

Here's what the README currently states are the latest tested versions:

Package Last version tested 20.04 version
PECL-AMQP 1.4 1.9.4-3ubuntu1
PHP-amqplib 2.5.1 2.11.0-2
Celery (via pip) 4.? 5.2.1

ergonlogic avatar Nov 30 '21 06:11 ergonlogic

@ergonlogic yeah, I should probably archive this project as it's unmaintained. Maybe one of the forks is kept updated?

If you find something that works for up-to-date celery, let me know please, so that I can tell other users to switch.

gjedeer avatar Nov 30 '21 09:11 gjedeer