Commit 19f9cc0d authored by eric pellegrini's avatar eric pellegrini
Browse files

The number of steps is not compulsory tobe known for a JobStatus object

parent d58a7be7
......@@ -66,8 +66,12 @@ class JobStatus(Status):
self._state['elapsed'] = self.elapsedTime
self._state['current_step'] = self.currentStep
self._state['eta'] = self.eta
self._state['progress'] = 100*self.currentStep/self.nSteps
if self._nSteps is not None:
self._state['eta'] = self.eta
self._state['progress'] = 100*self.currentStep/self.nSteps
else:
self._eta = "N/A"
self._state['progress'] = 0
self.save_status()
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