hashicorp / hashicorp/nomad

Add CompleteTime to the Jobs API

Open
#8,940 0 comments 0 reactions 0 assignees View on GitHub
theme/api
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

Currently, jobs have a `SubmitTime` field but no equivalent field for when a job transitions into a failed/complete/lost state.

The closest alternative is `ModifyTime` on allocations and `FinishedAt` on tasks within the allocations.

By bubbling up, say, the last `FinishedAt` timestamp for the last task in the last allocation to the job record itself, we'd save on API traversals when trying to compute job duration.

The clearest use case here would be to get the duration for batch jobs, particularly periodic and parameterized ones. Related issue here #4263

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.