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

how to set timeout with connection redis or mq #122

Open
crazychengmm opened this issue Dec 14, 2018 · 0 comments
Open

how to set timeout with connection redis or mq #122

crazychengmm opened this issue Dec 14, 2018 · 0 comments

Comments

@crazychengmm
Copy link

Hi
I use celery-php on my product to send data to celery. It helps me a lot. Thanks.
But I found a problem that when php server lost connection with celery server(network issue).
The process will hang until php's time limit(set_time_limit ).
$c = new \Celery\Celery('localhost', 'myuser', 'mypass', 'myvhost');
Is there anyidea that can set timeout on connection(network issue)?

I am not good at php.Would you give me some hint.

Thanks

@crazychengmm crazychengmm changed the title how to set connect redis or mq time out how to set timeout with connection redis or mq Dec 14, 2018
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

1 participant