Skip to content

Commit

Permalink
Bump oban from 2.15.2 to 2.15.3 (#626)
Browse files Browse the repository at this point in the history
Bumps [oban](https://github.com/sorentwo/oban) from 2.15.2 to 2.15.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sorentwo/oban/releases">oban's
releases</a>.</em></p>
<blockquote>
<h2>v2.15.3</h2>
<h3>Enhancements</h3>
<ul>
<li>
<p>[Pruner] Prune jobs using the <code>scheduled_at</code> timestamp
regardless of state.</p>
<p>The previous pruning query checked a different timestamp field for
each prunable state, e.g. <code>cancelled</code> used
<code>cancelled_at</code>. There aren't any indexes for those
timestamps, let alone the combination of each state and timestamp, which
led to slow pruning queries in larger databases.</p>
<p>In a database with a mixture of ~1.2m prunable jobs the updated query
is 130x faster, reducing the query time from 177ms down to 1.3ms.</p>
</li>
<li>
<p>[Lite] Avoid unnecessary transactions during staging and pruning
operations</p>
<p>Contention between SQLite3 transactions causes deadlocks that lead to
period errors. Avoiding transactions when there isn't anything to write
minimizes contention.</p>
</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>
<p>[Foreman] Explicitly pause queues when shutdown begins.</p>
<p>A call to <code>Producer.shutdown/1</code> was erroneously removed
during the <code>DynamicSupervisor</code> queue refactor.</p>
</li>
<li>
<p>[Job] Preserve explicit state set along with
<code>scheduled_in</code> time.</p>
<p>The presence of a <code>scheduled_in</code> timestamp would always
set the state to <code>scheduled</code>, even when an explicit state was
passed.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/sorentwo/oban/blob/v2.15.3/CHANGELOG.md">oban's
changelog</a>.</em></p>
<blockquote>
<h2>v2.15.3 — 2023-08-04</h2>
<h3>Enhancements</h3>
<ul>
<li>
<p>[Pruner] Prune jobs using the <code>scheduled_at</code> timestamp
regardless of state.</p>
<p>The previous pruning query checked a different timestamp field for
each prunable state, e.g.
<code>cancelled</code> used <code>cancelled_at</code>. There aren't any
indexes for those timestamps, let alone the
combination of each state and timestamp, which led to slow pruning
queries in larger databases.</p>
<p>In a database with a mixture of ~1.2m prunable jobs the updated query
is 130x faster, reducing
the query time from 177ms down to 1.3ms.</p>
</li>
<li>
<p>[Lite] Avoid unnecessary transactions during staging and pruning
operations</p>
<p>Contention between SQLite3 transactions causes deadlocks that lead to
period errors. Avoiding
transactions when there isn't anything to write minimizes
contention.</p>
</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>
<p>[Foreman] Explicitly pause queues when shutdown begins.</p>
<p>A call to <code>Producer.shutdown/1</code> was erroneously removed
during the <code>DynamicSupervisor</code> queue
refactor.</p>
</li>
<li>
<p>[Job] Preserve explicit state set along with
<code>scheduled_in</code> time.</p>
<p>The presence of a <code>scheduled_in</code> timestamp would always
set the state to <code>scheduled</code>, even when
an explicit state was passed.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/sorentwo/oban/commit/6e12c98fd3dd8d48246f3ce6e28fbdd4e24dd7cd"><code>6e12c98</code></a>
Release v2.15.3</li>
<li><a
href="https://github.com/sorentwo/oban/commit/a11497acdc03fa8cae54f0c8fd08e642a318336d"><code>a11497a</code></a>
Document error behavior for Oban.insert_all/3 (<a
href="https://redirect.github.com/sorentwo/oban/issues/934">#934</a>)</li>
<li><a
href="https://github.com/sorentwo/oban/commit/64b998d1dab956d3d8dcb449a7d42eb503347603"><code>64b998d</code></a>
Fix module typo in the migration doc. (<a
href="https://redirect.github.com/sorentwo/oban/issues/929">#929</a>)</li>
<li><a
href="https://github.com/sorentwo/oban/commit/e77931bcfa7c7f42bdb0081b32b45f43aaeb11ac"><code>e77931b</code></a>
More accurately describe Oban.retry_all_jobs/2</li>
<li><a
href="https://github.com/sorentwo/oban/commit/c96465d5f1ef0ed144c3313d2cac132e4738225d"><code>c96465d</code></a>
Do not start a write transaction when there is nothing to write (<a
href="https://redirect.github.com/sorentwo/oban/issues/924">#924</a>)</li>
<li><a
href="https://github.com/sorentwo/oban/commit/9f6e526a966c3a0d5479b2b8dd34a3a03f6a971f"><code>9f6e526</code></a>
Fix &quot;Features&quot; anchor in README.md (<a
href="https://redirect.github.com/sorentwo/oban/issues/925">#925</a>)</li>
<li><a
href="https://github.com/sorentwo/oban/commit/75e684be9a441468517f845d4b7a2ae02cff5463"><code>75e684b</code></a>
Bump ex_doc from 0.30.2 to 0.30.3 (<a
href="https://redirect.github.com/sorentwo/oban/issues/923">#923</a>)</li>
<li><a
href="https://github.com/sorentwo/oban/commit/ee504b5fc6d41d07ffd9dd024d9721607d714230"><code>ee504b5</code></a>
Update logo in docs and README with theme variants</li>
<li><a
href="https://github.com/sorentwo/oban/commit/66c79a5f0e48210dbae7c4cab5039d702e73dfc0"><code>66c79a5</code></a>
Bump postgrex from 0.17.1 to 0.17.2 (<a
href="https://redirect.github.com/sorentwo/oban/issues/922">#922</a>)</li>
<li><a
href="https://github.com/sorentwo/oban/commit/0022155941de28bde35cb18544850d2dd85a540b"><code>0022155</code></a>
Bump ex_doc from 0.30.1 to 0.30.2 (<a
href="https://redirect.github.com/sorentwo/oban/issues/921">#921</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/sorentwo/oban/compare/v2.15.2...v2.15.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=oban&package-manager=hex&previous-version=2.15.2&new-version=2.15.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
  • Loading branch information
github-actions[bot] authored Aug 7, 2023
2 parents f931568 + 777cbc4 commit 0769a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"nimble_pool": {:hex, :nimble_pool, "1.0.0", "5eb82705d138f4dd4423f69ceb19ac667b3b492ae570c9f5c900bb3d2f50a847", [:mix], [], "hexpm", "80be3b882d2d351882256087078e1b1952a28bf98d0a287be87e4a24a710b67a"},
"npm_deps": {:hex, :npm_deps, "0.3.1", "d1fe73f01659591a1a835eacf56978de6ad90e923d00f2b311470168f9aa45ea", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}], "hexpm", "37d9742685ef247dc093cd2da624abb882b454ddd1a91073ae414228e8d88da7"},
"number": {:hex, :number, "1.0.4", "3e6e6032a3c1d4c3760e77a42c580a57a15545dd993af380809da30fe51a032c", [:mix], [{:decimal, "~> 1.5 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}], "hexpm", "16f7516584ef2be812af4f33f2eaf3f9b9f6ed8892f45853eb93113f83721e42"},
"oban": {:hex, :oban, "2.15.2", "8f934a49db39163633965139c8846d8e24c2beb4180f34a005c2c7c3f69a6aa2", [:mix], [{:ecto_sql, "~> 3.6", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:ecto_sqlite3, "~> 0.9", [hex: :ecto_sqlite3, repo: "hexpm", optional: true]}, {:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.16", [hex: :postgrex, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "0f4a579ea48fc7489e0d84facf8b01566e142bdc6542d7dabce32c10e664f1e9"},
"oban": {:hex, :oban, "2.15.3", "d911af5362d707d0afd42bbead7eaa1d2708f55ece43a391e6ba246533b9d201", [:mix], [{:ecto_sql, "~> 3.6", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:ecto_sqlite3, "~> 0.9", [hex: :ecto_sqlite3, repo: "hexpm", optional: true]}, {:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.16", [hex: :postgrex, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "2c57502710aa21165c358f0b6f3062e3b1b334f54d970747d91437369ef5cb4a"},
"parse_trans": {:hex, :parse_trans, "3.3.1", "16328ab840cc09919bd10dab29e431da3af9e9e7e7e6f0089dd5a2d2820011d8", [:rebar3], [], "hexpm", "07cd9577885f56362d414e8c4c4e6bdf10d43a8767abb92d24cbe8b24c54888b"},
"phoenix": {:hex, :phoenix, "1.7.7", "4cc501d4d823015007ba3cdd9c41ecaaf2ffb619d6fb283199fa8ddba89191e0", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.1", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:phoenix_template, "~> 1.0", [hex: :phoenix_template, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.6", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:plug_crypto, "~> 1.2", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:websock_adapter, "~> 0.5.3", [hex: :websock_adapter, repo: "hexpm", optional: false]}], "hexpm", "8966e15c395e5e37591b6ed0bd2ae7f48e961f0f60ac4c733f9566b519453085"},
"phoenix_ecto": {:hex, :phoenix_ecto, "4.4.2", "b21bd01fdeffcfe2fab49e4942aa938b6d3e89e93a480d4aee58085560a0bc0d", [:mix], [{:ecto, "~> 3.5", [hex: :ecto, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.14.2 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "70242edd4601d50b69273b057ecf7b684644c19ee750989fd555625ae4ce8f5d"},
Expand Down

0 comments on commit 0769a4a

Please sign in to comment.