Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@hez
Copy link

@hez hez commented May 24, 2022

Change description

New metric for the Oban plugin, the total time the job spent in the DB before being attempted.

What problem does this solve?

Issue number: n/a

We wanted to track how long a job took from insertion to attempt. Normally queued time would tell you this but we snooze jobs and the queue time gets reset when you reinsert the job.

Example usage

Additional details and screenshots

Checklist

  • I have added unit tests to cover my changes.
  • I have added documentation to cover my changes.
  • My changes have passed unit tests and have been tested E2E in an example project.

Returns the total time the job spent in the DB before being attempted.
@hez
Copy link
Author

hez commented May 24, 2022

It is missing the grafana dashboard changes currently.

We are only interested in completed jobs, if we mix in snoozed ones the numbers are artificially lower and it gets recorded multiple times per job.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant