We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ad7340 commit 8719d64Copy full SHA for 8719d64
1 file changed
src/components/c2d/compute_engine_docker.ts
@@ -2080,7 +2080,13 @@ export class C2DEngineDocker extends C2DEngine {
2080
job.isStarted = false
2081
job.status = C2DStatusNumber.PublishingResults
2082
job.statusText = C2DStatusText.PublishingResults
2083
- job.algoStopTimestamp = String(Date.now() / 1000)
+ const containerFinishedAt =
2084
+ new Date(details.State.FinishedAt).getTime() / 1000
2085
+ job.algoStopTimestamp = String(
2086
+ containerFinishedAt > parseFloat(job.algoStartTimestamp)
2087
+ ? containerFinishedAt
2088
+ : Date.now() / 1000
2089
+ )
2090
job.isRunning = false
2091
await this.db.updateJob(job)
2092
return
0 commit comments