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
-
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
finishedOn
andprocessedOn
to 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.processedOn
as a workaround in theonWorkerComplete
method.Job should either be completed or failed, curious to know why would
finishedOn
property would be null?Beta Was this translation helpful? Give feedback.
All reactions