celery-php
celery-php copied to clipboard
Get result not working with amqp backend in Ubuntu 20.04
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?
Are you sure you're using a supported version of Celery?
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 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.