Skip to content

Commit

Permalink
Fix worker docs (oban-bg#150)
Browse files Browse the repository at this point in the history
- according to [the code](https://github.com/sorentwo/oban/blob/afa30971b8e58c44fd19ab1acf0fc0e3cb983a5a/lib/oban/queue/executor.ex#L39-L58) and [this readme section](https://github.com/sorentwo/oban/blob/afa30971b8e58c44fd19ab1acf0fc0e3cb983a5a/README.md#Defining-Workers), only `{:error, reason}` is considered as an error, while `:error` is considered as success.
  • Loading branch information
sasa1977 authored and sorentwo committed Jan 20, 2020
1 parent afa3097 commit 624e6c4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/oban/worker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ defmodule Oban.Worker do
Any of these return values or error events will fail the job:
* return `{:error, error}`
* return `:error`
* an unhandled exception
* an unhandled exit or throw
Expand Down

0 comments on commit 624e6c4

Please sign in to comment.