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
a7513784
Commit
a7513784
authored
May 19, 2020
by
Ignacio
Browse files
show
parent
3d97faa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
stream_kubejobs/__init__.py
View file @
a7513784
...
...
@@ -182,17 +182,12 @@ class KubeJobStreamProgress(Plugin):
timestamp
=
time
.
time
()
*
1000
job_result_key
=
"job:results"
last_item_key
=
self
.
rds
.
lrange
(
job_result_key
,
-
1
,
-
1
)
self
.
LOG
.
log
(
"Last item key = "
+
str
(
last_item_key
))
self
.
LOG
.
log
(
"Collect period ="
+
str
(
self
.
collect_period
))
last_item_key
=
self
.
rds
.
scard
(
job_result_key
)
if
(
not
last_item_key
):
self
.
report_job
(
timestamp
)
return
pipe
=
self
.
rds
.
pipeline
()
pipe
.
llen
(
'job'
)
pipe
.
llen
(
'job:processing'
)
...
...
@@ -227,8 +222,7 @@ class KubeJobStreamProgress(Plugin):
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
)
self
.
LOG
.
log
(
"Corrector term : %s"
%
int
(
self
.
corrector_term
))
self
.
LOG
.
log
(
"Error options : %s"
%
int
(
self
.
error_option
))
self
.
LOG
.
log
(
"Collect period ="
+
str
(
self
.
collect_period
))
self
.
LOG
.
log
(
"========================"
)
application_progress_error
=
\
...
...
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