Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Get result not working with amqp backend in Ubuntu 20.04 #125

Open
Daniyal-Javani opened this issue Jan 19, 2021 · 3 comments
Open

Get result not working with amqp backend in Ubuntu 20.04 #125

Daniyal-Javani opened this issue Jan 19, 2021 · 3 comments

Comments

@Daniyal-Javani
Copy link

Daniyal-Javani commented Jan 19, 2021

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?

@gjedeer
Copy link
Owner

gjedeer commented Jan 29, 2021

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

@ergonlogic
Copy link
Collaborator

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

@gjedeer
Copy link
Owner

gjedeer commented Nov 30, 2021

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants