codex-team / codex-team/codex.bot
pika does not support connection recovery
Open
- Dominant language
- Python
- Stars
- 41
- Forks
- 12
- Avg merge
- 1h 1m
- Merged PRs (30d)
- 1
Description
Provide smth like this
https://github.com/pika/pika/issues/858
```
while True:
connection = pika.BlockingConnection(parameters)
channel = connection.channel()
channel.basic_consume(on_message, 'queue')
try:
channel.start_consuming()
except pika.exceptions.ConnectionClosed:
LOGGER.info('Connection closed. Recovering')
continue
except KeyboardInterrupt:
channel.stop_consuming()
connection.close()
break```
Append this code and create issue for SDK
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.