hey @failsafe5000
long time not heared from you
It would be easy if we had some $datediff function but there are no date calc functions builtin yet. Also "$timecalc" is not helpful here.
So let's do a little trick. In a cmd executor node, insert this code, what it does is to use powershell to make a time difference between now and the date created of the job work folder.
Code: Select all
powershell -ExecutionPolicy Bypass -Command "((Get-Date) - (get-item "%s_job_work%").CreationTime).TotalSeconds"
You must also create a user variable and capture the output of the cmd to a variable, by setting "Read std-stream to variable" (e.g. %s_startdate%).
Before going on, please check if it works by inserting a populate proc after the cmd proc and set s_success to s_startdate. In the job status monitor you should see "outcome" set to some seconds value like 2.384549 (2 seconds and a few millis)
After that, we can use a populate processor to transform the seconds value from powershell to a timecode which is most likely what you want to show.
So, in a populate processor, set some variable (e.g. s_finaltime ) to this value:
Again, after this, make sure that it works again by setting s_success to "s_finaltime" and check if the status monitor shows a timecode form.
You can use hold processor to fake a longer job run time.