Commit 939cd799 authored by Ignacio Morsch Schmid's avatar Ignacio Morsch Schmid
Browse files

Making expected_time accept float

parent 8145c2ac
......@@ -45,7 +45,7 @@ class KubeJobStreamProgress(Plugin):
self.validate(info_plugin)
self.LOG = Log(LOG_NAME, LOG_FILE)
self.enable_detailed_report = info_plugin['enable_detailed_report']
self.expected_time = int(info_plugin['expected_time'])
self.expected_time = float(info_plugin['expected_time'])
self.number_of_jobs = int(info_plugin['number_of_jobs'])
self.submission_time = self.get_submission_time(info_plugin)
self.dimensions = self.get_dimensions()
......@@ -367,7 +367,7 @@ class KubeJobStreamProgress(Plugin):
def validate(self, data):
data_model = {
"enable_detailed_report": bool,
"expected_time": int,
# "expected_time": int,
"number_of_jobs": int,
"redis_ip": six.string_types,
"redis_port": int,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment