Skip to content

Commit 393a875

Browse files
committed
improve the log message in redis when a job is queued
1 parent 9f3441e commit 393a875

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

application/utils/redis.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ def do_nothing():
7979
)
8080
jobs.pop(jobs.index(job))
8181
callback()
82+
elif job.is_queued:
83+
logger.info(
84+
f"job {job.description} is {job.get_status()}, if your system allows it, try starting a worker to pick it up"
85+
)
8286
elif not job.is_started:
8387
logger.info(
8488
f"job {job.description} is of unknown status {job.get_status()}"

0 commit comments

Comments
 (0)