question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `created_at` field to workflow_job event

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Reactions:9
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
TingluoHuangcommented, Feb 23, 2023

The change has been deployed, and the workflow_job payload should have a created_at field now. 🙇

2reactions
ruvceskistefancommented, May 12, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webhook events and payloads
You can create webhooks that subscribe to the events listed on this page. Each webhook event includes a description of the webhook properties...
Read more >
How to publish GitHub event data with GitHub Actions and ...
Below is the step that adds, commits, and pushes changes made by the workflow back to the repository's master branch. - name: Push...
Read more >
GitHub Actions: Do not run a job, if issue is already in project
We have a big project (called Board) with many columns. Normally, all items are added to the "backlog" column (this is the default...
Read more >
Jobs - XOi Integrations Documentation
Field, Argument, Type, Description. workflowName, String. workflowLabel, String. workflowJobId, ID, ID of the workflow job associated with this content.
Read more >
CircleCI API v2
Add or update an environment variable. Create or update an environment variable within a context. Returns information about the environment variable, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found