mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-15 13:37:56 +08:00
Convert queue size and count to string in monitor (#319)
This commit is contained in:
@@ -173,7 +173,7 @@ def monitor(run_once=False, broker=None):
|
||||
)
|
||||
print(
|
||||
term.move(i, 3 * col_width)
|
||||
+ term.white_on_cyan(term.center(queue_size, width=col_width))
|
||||
+ term.white_on_cyan(term.center(str(queue_size), width=col_width))
|
||||
)
|
||||
print(
|
||||
term.move(i, 4 * col_width)
|
||||
@@ -182,7 +182,7 @@ def monitor(run_once=False, broker=None):
|
||||
print(
|
||||
term.move(i, 5 * col_width)
|
||||
+ term.white_on_cyan(
|
||||
term.center(models.Success.objects.count(), width=col_width)
|
||||
term.center(str(models.Success.objects.count()), width=col_width)
|
||||
)
|
||||
)
|
||||
print(
|
||||
@@ -192,7 +192,7 @@ def monitor(run_once=False, broker=None):
|
||||
print(
|
||||
term.move(i, 7 * col_width)
|
||||
+ term.white_on_cyan(
|
||||
term.center(models.Failure.objects.count(), width=col_width)
|
||||
term.center(str(models.Failure.objects.count()), width=col_width)
|
||||
)
|
||||
)
|
||||
# for testing
|
||||
|
||||
Reference in New Issue
Block a user