# Webhook finish time before start

**URL:** https://forum.buildkite.community/t/webhook-finish-time-before-start/1788
**Category:** General
**Created:** [November 17, 2021, 7:36am UTC](https://forum.buildkite.community/t/webhook-finish-time-before-start/1788 "2021-11-17T07:36:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![carlos.gonzalez](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/carlos.gonzalez/32/1011_2.png) [@carlos.gonzalez](https://forum.buildkite.community/u/carlos.gonzalez)
#### Post date: [November 17, 2021, 7:36am UTC](https://forum.buildkite.community/t/webhook-finish-time-before-start/1788/1 "2021-11-17T07:36:37Z")

</div>

Hello,

I have a service that processes BuildKite webhooks and every once in a while it receives webhooks with times and states that do’t make much sense to me. For example:

```auto
{
"event": "job.finished",
  "job": {
    "type": "trigger",
    "state": "running",
    "created_at": "2021-11-16T23:44:49.100Z",
    "scheduled_at": "2021-11-16T22:00:32.551Z",
    "started_at": "2021-11-17T01:06:13.840Z",
    "finished_at": "2021-11-17T00:55:44.816Z",
    "runnable_at": "2021-11-16T23:44:49.211Z",
...
}

```

In the webhook above even though it is a `job.finished` event the state is `running`. And the `finished_at` is 10min before the `started_at`. Is this expected? If so could someone explain the rational behind it?

---

<div class="post-metadata">

### Author: ![paula](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/paula/32/954_2.png) [@paula](https://forum.buildkite.community/u/paula)
#### Post date: [November 18, 2021, 8:37pm UTC](https://forum.buildkite.community/t/webhook-finish-time-before-start/1788/2 "2021-11-18T20:37:22Z")

</div>

Hi @carlos.gonzalez! 👋

Welcome to the community!

Hmm, interesting 🤔 Could you send more details like builds examples where you are seeing this to [support@buildkite.com](mailto:support@buildkite.com) so we can have a better look?

Thanks!

---

<div class="post-metadata">

### Author: ![carlos.gonzalez](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/carlos.gonzalez/32/1011_2.png) [@carlos.gonzalez](https://forum.buildkite.community/u/carlos.gonzalez)
#### Post date: [November 19, 2021, 7:35am UTC](https://forum.buildkite.community/t/webhook-finish-time-before-start/1788/3 "2021-11-19T07:35:15Z")

</div>

Hi @paula,

Unfortunately I cannot do that, the webhooks are from a 3rd party my service just process them, so I cannot share that information as I do not have access to it. I can only say that it is been happening sporadically for the last week, where `trigger` type jobs have send finished jobs webhooks with `state: running` and `finished_at < started_at`.

I’ll try to reproduce in my own Buildkite org. But just to confirm, this is not expected behaviour is it?

---

<div class="post-metadata">

### Author: ![paula](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/paula/32/954_2.png) [@paula](https://forum.buildkite.community/u/paula)
#### Post date: [November 19, 2021, 12:24pm UTC](https://forum.buildkite.community/t/webhook-finish-time-before-start/1788/4 "2021-11-19T12:24:37Z")

</div>

He @carlos.gonzalez!

> this is not expected behaviour is it?

Nop, I believe it’s not, but we’ll need to confirm it. If you are able to replicate it, please send the info to support so we can properly check it 🙂

Thanks!
