Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matheus Melo
stream_kubejobs
Commits
12175f32
Commit
12175f32
authored
May 27, 2020
by
Ignacio
Browse files
show
parent
345756d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
stream_kubejobs/__init__.py
View file @
12175f32
...
...
@@ -185,8 +185,9 @@ class KubeJobStreamProgress(Plugin):
pipe
=
self
.
rds
.
pipeline
()
pipe
.
get
(
'job:inserted_count'
)
pipe
.
get
(
'job:completed_count'
)
pipe
.
llen
(
"job"
)
inserted_items
,
items_completed
,
main_q_size
=
pipe
.
execute
()
pipe
.
get
(
'job:processing'
)
pipe
.
llen
(
'job'
)
inserted_items
,
items_completed
,
num_processing_jobs
,
main_q_size
=
pipe
.
execute
()
inserted_items
=
int
(
inserted_items
)
if
inserted_items
!=
None
else
0
items_completed
=
int
(
items_completed
)
if
items_completed
!=
None
else
0
...
...
@@ -212,10 +213,10 @@ class KubeJobStreamProgress(Plugin):
self
.
LOG
.
log
(
"Correction term: %s"
%
corrector_term
)
self
.
LOG
.
log
(
"Error: %s"
%
error
)
self
.
LOG
.
log
(
"Replicas: %s"
%
replicas
)
self
.
LOG
.
log
(
"Inserted items : %i"
%
inserted_items
)
self
.
LOG
.
log
(
"Queue size: %s"
%
main_q_size
)
self
.
LOG
.
log
(
"Pods Processins: %s"
%
num_processing_jobs
)
self
.
LOG
.
log
(
"Items Completed: %i"
%
items_completed
)
self
.
LOG
.
log
(
"Inserted items : %i"
%
inserted_items
)
self
.
LOG
.
log
(
"Input Flux : %s"
%
input_flux
)
self
.
LOG
.
log
(
"Real output Flux : %s"
%
real_output_flux
)
self
.
LOG
.
log
(
"Expected output Flux : %s"
%
expected_output_flux
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment