From d7503e62531d5f1f87d78aa8bfa3adf59f0f3c18 Mon Sep 17 00:00:00 2001 From: Roman Bange <13252574+rbange@users.noreply.github.com> Date: Thu, 18 Jul 2024 05:09:25 +0200 Subject: [PATCH] More verbose AbandonedJobError warning (#2101) --- rq/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/registry.py b/rq/registry.py index 8106ff09..66ef90ad 100644 --- a/rq/registry.py +++ b/rq/registry.py @@ -274,7 +274,7 @@ class StartedJobRegistry(BaseRegistry): else: exc_string = f"due to {AbandonedJobError.__name__}" logger.warning( - f'{self.__class__.__name__} cleanup: Moving job to {FailedJobRegistry.__name__} ' + f'{self.__class__.__name__} cleanup: Moving job {job.id} to {FailedJobRegistry.__name__} ' f'({exc_string})' ) job.set_status(JobStatus.FAILED)