likyh commented on code in PR #3532:
URL:
https://github.com/apache/incubator-devlake/pull/3532#discussion_r1002979730
##########
services/pipeline_runner.go:
##########
@@ -122,7 +122,10 @@ func runPipeline(pipelineId uint64) errors.Error {
// finished, update database
finishedAt := time.Now()
pipeline.FinishedAt = &finishedAt
- pipeline.SpentSeconds = int(finishedAt.Unix() - pipeline.BeganAt.Unix())
+ if pipeline.BeganAt != nil {
Review Comment:
https://github.com/apache/incubator-devlake/blob/68095c5e4bd95f7afeb1347bcd6232e98dc133ea/runner/run_pipeline.go#L69
Here is the only setter. But it may not be executed because of err
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]