Add `created_at` field to workflow_job event
See original GitHub issueDescribe the enhancement
At field created_at
toworkflow_job
event to calculate time that it takes start jobs from the moment the event was created.
Code Snippet n/a
Additional information We are creating some metrics to keep track of our fleet of self-hosted runners. For our users one of the most important things is, is the time it takes to start a job from the moment the event was created. This indicator indicates the time it takes from the moment a job is triggered it got start on the agent. For our self-hosted runners it means the time it takes to potentially create an istance start the agent. See also issue
The workflow jobs event sent when the job is queued contains a field started_at
. This is the moment the job is triggerd. Later we got an event when the job is started. Now the field started_at
is updated. The diff between two timestamps is the time it takes to start the job. Calculationg the diff seems trivvial, but requires keep track on the state and or matching the events. The actions/runs
API contains a created_at
timestamp. Looks like the suite created for the job once the job was started.
To calculate the time in uncomplicated way it would be very helpfull when the created_at
time is added to the workflow_job
events.
Issue Analytics
- State:
- Created a year ago
- Reactions:9
- Comments:6 (1 by maintainers)
Top GitHub Comments
The change has been deployed, and the
workflow_job
payload should have acreated_at
field now. 🙇Hi @npalm, Thanks for reporting this enhancement request. I added it to the board, so we’re going to consider it and work on it in the future.