-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] use celery task send data to pulsar, init pulsar client error #150
Comments
I'm new to celery. Could you explain how to run the script you provided? |
It cannot be fully reproduced, but the online environment has always been problematic. The test of a separate celery + pulsar code is normal. At present, there is no idea. The online environment reports the following errors:
The online environment only has problems when calling celery.delay, and there will be no exception when calling the function directly,as follows # ok
mock_data2pulsar(cnt=1000)
# exception
mock_data2pulsar.delay(cnt=1000) debug |
Hi @dengshaochun. I tried to reproduce the bug but the code works. There are suspicions that the problem is in the name of topic. Here my example: https://github.com/gromsterus/issues-sandbox/tree/main/pulsar-client-python-150 If you provide the complete code with celery initialization it will be easier to help 🤝 |
python: 3.6
pulsar-client: pulsar-client[avro]==2.10.2
celery: 5.1.2
code example:
an exception occurred at:
The text was updated successfully, but these errors were encountered: