Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to track metrics around time taken to process a job or duration of the job staring from when it was picked to when it was completed. I use the properties
finishedOnandprocessedOnto calculate the same (job.finishedOn - job.processedOn), but most of the time the finishedOn property returns null.Since the property is nullable, I am doing something like
job.finishedOn || Date.now() - job.processedOnas a workaround in theonWorkerCompletemethod.Job should either be completed or failed, curious to know why would
finishedOnproperty would be null?Beta Was this translation helpful? Give feedback.
All reactions