mirror of https://github.com/rq/rq.git
More verbose AbandonedJobError warning (#2101)
This commit is contained in:
parent
458a2ff228
commit
d7503e6253
|
@ -274,7 +274,7 @@ class StartedJobRegistry(BaseRegistry):
|
||||||
else:
|
else:
|
||||||
exc_string = f"due to {AbandonedJobError.__name__}"
|
exc_string = f"due to {AbandonedJobError.__name__}"
|
||||||
logger.warning(
|
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})'
|
f'({exc_string})'
|
||||||
)
|
)
|
||||||
job.set_status(JobStatus.FAILED)
|
job.set_status(JobStatus.FAILED)
|
||||||
|
|
Loading…
Reference in New Issue