mirror of
https://github.com/tropicoo/yt-dlp-bot.git
synced 2025-03-01 17:23:25 +08:00
Update RMQ message ack logic
This commit is contained in:
parent
87dc752e64
commit
9d927c4411
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@ class RMQCallbacks:
|
|||
await self._process_incoming_message(message)
|
||||
except Exception:
|
||||
self._log.exception('Critical exception in worker RabbitMQ callback')
|
||||
if not message.processed:
|
||||
await message.reject(requeue=False)
|
||||
|
||||
async def _process_incoming_message(self, message: IncomingMessage) -> None:
|
||||
self._log.info('[x] Received message %s', message.body)
|
||||
|
|
Loading…
Reference in a new issue