Skip to content

Commit

Permalink
Merge pull request #49 from mbuhot/version-2.1.0
Browse files Browse the repository at this point in the history
Version 2.1.0
  • Loading branch information
mbuhot authored May 16, 2019
2 parents 17f2b33 + d4e7193 commit 2b0fd50
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
# 2.1.0

Version 2.1 add support for requeing jobs, fixes to the job reservation algorithm and dialyzer warnings.

[#34](https://github.com/mbuhot/ecto_job/pull/34) - [mkorszun](https://github.com/mkorszun) New API to requeue a failed job :

Requeuing will:

* set `state` to `SCHEDULED`
* set `attempt` to `0`
* set `expires` to `nil`

```elixir
Ecto.Multi.new()
|> MyApp.Job.requeue("requeue_job", failed_job)
|> MyApp.Repo.transaction()
```

[#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.

[#41](https://github.com/mbuhot/ecto_job/pull/41) - [mbuhot](https://github.com/mbuhot) - Fixed dialyzer warnings in `JobQueue` modules

[#42](https://github.com/mbuhot/ecto_job/pull/42) - [sneako](https://github.com/sneako) - Improved documentation


[#48](https://github.com/mbuhot/ecto_job/pull/48) - [darksheik](https://github.com/darksheik) - Improved documentation

Thankyou contributors!


# 2.0.0

EctoJob 2.0 adds support for Ecto 3.0.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A transactional job queue built with Ecto, PostgreSQL and GenStage
Add `:ecto_job` to your `dependencies`

```elixir
{:ecto_job, "~> 2.0"}
{:ecto_job, "~> 2.1"}
```

## Installation
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule EctoJob.Mixfile do
use Mix.Project

@version "2.0.0"
@version "2.1.0"
@url "https://github.com/mbuhot/ecto_job"

def project do
Expand Down

0 comments on commit 2b0fd50

Please sign in to comment.