Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/huey/consumer.py", line 356, in _run process.loop() File "/usr/local/lib/python3.9/site-packages/huey/consumer.py", line 170, in loop self.enqueue_periodic_tasks(now) File "/usr/local/lib/python3.9/site-packages/huey/consumer.py", line 178, in enqueue_periodic_tasks self.huey.enqueue(task) File "/usr/local/lib/python3.9/site-packages/huey/api.py", line 300, in enqueue self.storage.enqueue(self.serialize_task(task), task.priority) File "/usr/local/lib/python3.9/site-packages/huey/storage.py", line 416, in enqueue self.conn.lpush(self.queue_key, data) File "/usr/local/lib/python3.9/site-packages/redis/commands/core.py", line 2706, in lpush return self.execute_command("LPUSH", name, *values) File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/redis/__init__.py", line 264, in sentry_patched_execute_command return old_execute_command(self, name, *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 1266, in execute_command conn = self.connection or pool.get_connection(command_name, **options) File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 1457, in get_connection connection.connect() File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 705, in connect raise ConnectionError(self._error_message(e)) redis.exceptions.ConnectionError: Error 111 connecting to redis:6379. Connection refused. [2025-04-04 01:39:45,105] WARNING:huey.consumer:MainThread:Scheduler died, restarting. [2025-04-04 01:39:45,106] ERROR:huey.consumer.Scheduler:Scheduler:Error reading schedule. Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 699, in connect sock = self.retry.call_with_retry( File "/usr/local/lib/python3.9/site-packages/redis/retry.py", line 46, in call_with_retry return do() File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 700, in lambda: self._connect(), lambda error: self.disconnect(error) File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 1002, in _connect raise err File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 990, in _connect sock.connect(socket_address) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/huey/consumer.py", line 160, in loop task_list = self.huey.read_schedule(now) File "/usr/local/lib/python3.9/site-packages/huey/api.py", line 576, in read_schedule for task in self.storage.read_schedule(timestamp)] File "/usr/local/lib/python3.9/site-packages/huey/storage.py", line 448, in read_schedule tasks = self._pop(keys=[self.schedule_key], args=[unix_ts]) File "/usr/local/lib/python3.9/site-packages/redis/commands/core.py", line 5827, in __call__ return client.evalsha(self.sha, len(keys), *args) File "/usr/local/lib/python3.9/site-packages/redis/commands/core.py", line 5214, in evalsha return self._evalsha("EVALSHA", sha, numkeys, *keys_and_args) File "/usr/local/lib/python3.9/site-packages/redis/commands/core.py", line 5198, in _evalsha return self.execute_command(command, sha, numkeys, *keys_and_args) File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/redis/__init__.py", line 264, in sentry_patched_execute_command return old_execute_command(self, name, *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 1266, in execute_command conn = self.connection or pool.get_connection(command_name, **options) File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 1457, in get_connection connection.connect() File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 705, in connect raise ConnectionError(self._error_message(e)) redis.exceptions.ConnectionError: Error 111 connecting to redis:6379. Connection refused. [2025-04-04 01:39:45,111] INFO:huey.consumer.Scheduler:Scheduler:Enqueueing periodic task external_push.tasks.dispatch_push_tasks: f1b2d5dd-e400-4338-91ff-29f179fa29aa. [2025-04-04 01:39:45,112] ERROR:huey.consumer:Scheduler:Process Scheduler died! Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 699, in connect sock = self.retry.call_with_retry( File "/usr/local/lib/python3.9/site-packages/redis/retry.py", line 46, in call_with_retry return do() File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 700, in lambda: self._connect(), lambda error: self.disconnect(error) File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 1002, in _connect raise err File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 990, in _connect sock.connect(socket_address) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/huey/consumer.py", line 356, in _run process.loop() File "/usr/local/lib/python3.9/site-packages/huey/consumer.py", line 170, in loop self.enqueue_periodic_tasks(now) File "/usr/local/lib/python3.9/site-packages/huey/consumer.py", line 178, in enqueue_periodic_tasks self.huey.enqueue(task) File "/usr/local/lib/python3.9/site-packages/huey/api.py", line 300, in enqueue self.storage.enqueue(self.serialize_task(task), task.priority) File "/usr/local/lib/python3.9/site-packages/huey/storage.py", line 416, in enqueue self.conn.lpush(self.queue_key, data) File "/usr/local/lib/python3.9/site-packages/redis/commands/core.py", line 2706, in lpush return self.execute_command("LPUSH", name, *values) File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/redis/__init__.py", line 264, in sentry_patched_execute_command return old_execute_command(self, name, *args, **kwargs) File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 1266, in execute_command conn = self.connection or pool.get_connection(command_name, **options) File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 1457, in get_connection connection.connect() File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 705, in connect raise ConnectionError(self._error_message(e)) redis.exceptions.ConnectionError: Error 111 connecting to redis:6379. Connection refused.