Skip to content

Commit

Permalink
Prevent cancelled/discarded icons from rotating
Browse files Browse the repository at this point in the history
Closes #81
  • Loading branch information
sorentwo committed Dec 1, 2023
1 parent 448944c commit 1fe5768
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/oban/web/live/jobs/timeline_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ defmodule Oban.Web.Jobs.TimelineComponent do
defp absolute_state("executing", "completed", _), do: :finished
defp absolute_state("executing", "executing", _), do: :started
defp absolute_state("executing", _, _), do: :unstarted
defp absolute_state("cancelled", "cancelled", _), do: :finished
defp absolute_state("cancelled", "retryable", _), do: :unstarted
defp absolute_state("discarded", "discarded", _), do: :finished
defp absolute_state("discarded", "retryable", _), do: :unstarted
defp absolute_state("scheduled", "retryable", _), do: :retrying
defp absolute_state(state, state, _), do: :started
Expand Down

0 comments on commit 1fe5768

Please sign in to comment.