st2web icon indicating copy to clipboard operation
st2web copied to clipboard

Show execution time for running tasks

Open arm4b opened this issue 7 years ago • 5 comments

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.

arm4b avatar Aug 03 '17 17:08 arm4b

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!

enykeev avatar Aug 03 '17 18:08 enykeev

So store the client starting time ("run" button pressed) and use that to get elapsed

vincent-legoll avatar Aug 08 '17 11:08 vincent-legoll

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.

enykeev avatar Aug 08 '17 14:08 enykeev

+1

nmaludy avatar Sep 29 '17 12:09 nmaludy

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.

blag avatar Apr 21 '21 22:04 blag