st2web
st2web copied to clipboard
Show execution time for running tasks
Finished task has "Execution time"
Running task can have "Execution time" indicator, too
It would be nice to show the indication with animation for how long time the task is already running.
The problem with that feature is the fact that server time (started) might be very different from client time (current) and in some cases we may end up with a negative execution time. Oops!
So store the client starting time ("run" button pressed) and use that to get elapsed
Then what should we do when the action was executed by another user on another machine or automatically in response to a trigger? I guess we can try to approximate in broad strokes "less than a minute", "about 5 minutes", something like that.
+1
Just FYI: the process of translating into human-readable formats is usually called "humanize"-ing them.
And I think this is probably some low-hanging fruit for a JS developer to add, and it would be a fairly visible and useful change for users.