From 4c4a2c86be4482b5a9ccff7dc2bebd480e108994 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Thu, 23 May 2024 10:36:06 +0330 Subject: [PATCH 1/2] fix: adding logs to the check the status! --- worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/worker.py b/worker.py index b2e2eb4..414e24d 100644 --- a/worker.py +++ b/worker.py @@ -20,6 +20,7 @@ def worker_exception_handler(job, exc_type, exc_value, traceback): worker = Worker( queues=["default"], connection=r, exception_handlers=worker_exception_handler ) + logging.info(f"Registered the worker!") try: worker.work(with_scheduler=True, max_jobs=1) except KeyboardInterrupt: From 9f8ee96ac266ca481f72649911e8b787bf4c770c Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Thu, 23 May 2024 10:46:05 +0330 Subject: [PATCH 2/2] fix: lint issues! --- worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.py b/worker.py index 414e24d..d756fd7 100644 --- a/worker.py +++ b/worker.py @@ -20,7 +20,7 @@ def worker_exception_handler(job, exc_type, exc_value, traceback): worker = Worker( queues=["default"], connection=r, exception_handlers=worker_exception_handler ) - logging.info(f"Registered the worker!") + logging.info("Registered the worker!") try: worker.work(with_scheduler=True, max_jobs=1) except KeyboardInterrupt: