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
e9c5ce11
Commit
e9c5ce11
authored
Apr 09, 2020
by
Ignacio
Browse files
.
parent
287dfd55
Changes
1
Hide whitespace changes
Inline
Side-by-side
stream_kubejobs/__init__.py
View file @
e9c5ce11
...
...
@@ -53,7 +53,6 @@ class KubeJobStreamProgress(Plugin):
self
.
current_job_id
=
0
self
.
job_report
=
JobReport
(
info_plugin
)
self
.
report_flag
=
True
self
.
last_time_to_complete
=
-
1
self
.
last_replicas
=
last_replicas
self
.
last_error
=
0.0
self
.
last_timestamp
=
time
.
time
()
*
1000
...
...
@@ -181,8 +180,6 @@ class KubeJobStreamProgress(Plugin):
self
.
LOG
.
log
(
"========================"
)
self
.
LOG
.
log
(
"Items Completed: %i"
%
items_completed
)
self
.
LOG
.
log
(
"Error: %s"
%
error
)
# self.LOG.log("Real-time: %s" % time_to_complete)
self
.
LOG
.
log
(
"Expected-time: %s"
%
self
.
expected_time
)
self
.
LOG
.
log
(
"Replicas: %s"
%
replicas
)
self
.
LOG
.
log
(
"Queue size: %s"
%
main_q_size
)
self
.
LOG
.
log
(
"Pods Processins: %s"
%
num_processing_jobs
)
...
...
@@ -199,7 +196,7 @@ class KubeJobStreamProgress(Plugin):
if
self
.
enable_detailed_report
:
job_progress_error
=
\
self
.
get_real_time_manifest
(
time_to_complete
,
self
.
get_real_time_manifest
(
1
,
timestamp
)
time_progress_error
=
\
self
.
get_expected_time_manifest
(
self
.
expected_time
,
...
...
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