Skip to content

Commit 5aaf399

Browse files
sbidoulAnizR
authored andcommitted
[IMP] queue_job: tweak comment and warning message
1 parent 4e517f7 commit 5aaf399

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

queue_job/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def load_many(cls, env, job_uuids):
223223

224224
def add_lock_record(self):
225225
"""
226-
Create row in db to be locked once the job is performed
226+
Create row in db to be locked while the job is being performed.
227227
"""
228228
self.env.cr.execute(
229229
"""

queue_job/jobrunner/runner.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,7 @@ def requeue_dead_jobs(self):
407407
cr.execute(query)
408408

409409
for (uuid,) in cr.fetchall():
410-
_logger.warning(
411-
"Re-queued job with uuid: %s",
412-
uuid,
413-
)
410+
_logger.warning("Re-queued dead job with uuid: %s", uuid)
414411

415412

416413
class QueueJobRunner:

0 commit comments

Comments
 (0)