# Keeping Oban's time units explicit

Oban's Lifeline and Pruner accept raw integers in different units: `rescue_after` is milliseconds, while `max_age` is seconds.

On current Oban releases, use period tuples so the unit stays with the value:

```elixir
config :my_app, Oban,
  lifeline: [rescue_after: {2, :hours}],
  pruner: [max_age: {7, :days}]
```

Reusing `:timer.hours(168)` for `max_age` would keep jobs for 604,800,000 seconds, or about 19 years, instead of seven days.

Older Oban releases used `Oban.Plugins.Lifeline` and `Oban.Plugins.Pruner` and accepted integers only, so check the documentation for the version you run.

https://oban.hexdocs.pm/Oban.html


---

Created by: almirsarajcic
Date: September 20, 2026
URL: https://elixirdrops.net/d/kz7648Vu
