From 73e819e5b00444e826febea9eb7d3153552d7d3a Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Tue, 3 Jun 2025 15:08:57 +0200 Subject: [PATCH] [FIX] queue_job: missing slot for __weakref__ --- queue_job/jobrunner/channels.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/queue_job/jobrunner/channels.py b/queue_job/jobrunner/channels.py index 1cce46083..8d2c97c7d 100644 --- a/queue_job/jobrunner/channels.py +++ b/queue_job/jobrunner/channels.py @@ -173,7 +173,16 @@ class ChannelJob: """ - __slots__ = ("db_name", "channel", "uuid", "seq", "date_created", "priority", "eta") + __slots__ = ( + "db_name", + "channel", + "uuid", + "seq", + "date_created", + "priority", + "eta", + "__weakref__", + ) def __init__(self, db_name, channel, uuid, seq, date_created, priority, eta): self.db_name = db_name