Skip to main content
Nintex Community Menu Bar

Unending run time in duration

  • March 26, 2021
  • 0 replies
  • 13 views

MRepetti
Nintex Employee
Forum|alt.badge.img+11

Issue

When going to a robot and/or trigger and checking the processes that are done, if the duration counter continues to increase, and this happens even after the bot has finished its task, here are the steps to resolve.

 

edit 2

 

Resolution

1. Go to <Installed Drive>:KryonServiceskryon-unattended-ui-svclibservices and backup
tasksByProducerService.js.
2. Open tasksByProducerService.js with a text editor and locate line 152. You should see the
following line:

  • task.durationSec = task.durationSecCalc || task.startedDateTime ?
    parseInt(dayjs.utc().diff(dayjs.utc(task.startedDateTime)) / 1000) : null

3. Replace it with the following line:

  • task.durationSec = task.durationSecCalc || task.startedDateTime ?
    parseInt((dayjs.utc(task.endedDateTime).diff(dayjs.utc(task.startedDateTime))) / 1000) : null

4. Save and close the file.
5. Restart Kryon RPA – Main Service.
6. Check the page again to ensure issue