Skip to content

Commit 2b0fd50

Browse files
authored
Merge pull request #49 from mbuhot/version-2.1.0
Version 2.1.0
2 parents 17f2b33 + d4e7193 commit 2b0fd50

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
# 2.1.0
2+
3+
Version 2.1 add support for requeing jobs, fixes to the job reservation algorithm and dialyzer warnings.
4+
5+
[#34](https://github.com/mbuhot/ecto_job/pull/34) - [mkorszun](https://github.com/mkorszun) New API to requeue a failed job :
6+
7+
Requeuing will:
8+
9+
* set `state` to `SCHEDULED`
10+
* set `attempt` to `0`
11+
* set `expires` to `nil`
12+
13+
```elixir
14+
Ecto.Multi.new()
15+
|> MyApp.Job.requeue("requeue_job", failed_job)
16+
|> MyApp.Repo.transaction()
17+
```
18+
19+
[#43](https://github.com/mbuhot/ecto_job/pull/43) - [mbuhot](https://github.com/mbuhot), [seangeo](https://github.com/seangeo) - Fixed issue where too many rows would be locked, causing negative demand in GenStage producer. See [this document](https://github.com/feikesteenbergen/demos/blob/master/bugs/update_from_correlated.adoc) for additional details.
20+
21+
[#41](https://github.com/mbuhot/ecto_job/pull/41) - [mbuhot](https://github.com/mbuhot) - Fixed dialyzer warnings in `JobQueue` modules
22+
23+
[#42](https://github.com/mbuhot/ecto_job/pull/42) - [sneako](https://github.com/sneako) - Improved documentation
24+
25+
26+
[#48](https://github.com/mbuhot/ecto_job/pull/48) - [darksheik](https://github.com/darksheik) - Improved documentation
27+
28+
Thankyou contributors!
29+
30+
131
# 2.0.0
232

333
EctoJob 2.0 adds support for Ecto 3.0.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A transactional job queue built with Ecto, PostgreSQL and GenStage
2424
Add `:ecto_job` to your `dependencies`
2525

2626
```elixir
27-
{:ecto_job, "~> 2.0"}
27+
{:ecto_job, "~> 2.1"}
2828
```
2929

3030
## Installation

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule EctoJob.Mixfile do
22
use Mix.Project
33

4-
@version "2.0.0"
4+
@version "2.1.0"
55
@url "https://github.com/mbuhot/ecto_job"
66

77
def project do

0 commit comments

Comments
 (0)