Rework some Rich Media functionality for better error handling
Oban should not retry jobs that are likely to fail again
This commit is contained in:
parent
b4c5cc39f6
commit
d124d8645e
8 changed files with 70 additions and 50 deletions
|
|
@ -1724,7 +1724,7 @@ defmodule HttpRequestMock do
|
|||
]
|
||||
|
||||
def head(url, _query, _body, _headers) when url in @rich_media_mocks do
|
||||
{:ok, %Tesla.Env{status: 404, body: ""}}
|
||||
{:ok, %Tesla.Env{status: 200, body: ""}}
|
||||
end
|
||||
|
||||
def head("https://example.com/pdf-file", _, _, _) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue