We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1e1316 commit 6b2e316Copy full SHA for 6b2e316
1 file changed
src/components/c2d/compute_engine_docker.ts
@@ -2067,7 +2067,13 @@ export class C2DEngineDocker extends C2DEngine {
2067
job.isStarted = false
2068
job.status = C2DStatusNumber.PublishingResults
2069
job.statusText = C2DStatusText.PublishingResults
2070
- job.algoStopTimestamp = String(Date.now() / 1000)
+ const containerFinishedAt =
2071
+ new Date(details.State.FinishedAt).getTime() / 1000
2072
+ job.algoStopTimestamp = String(
2073
+ containerFinishedAt > parseFloat(job.algoStartTimestamp)
2074
+ ? containerFinishedAt
2075
+ : Date.now() / 1000
2076
+ )
2077
job.isRunning = false
2078
await this.db.updateJob(job)
2079
return
0 commit comments