Jey Choi

Results 2 comments of Jey Choi

i don't think this is beautiful but i've finally achieved it by doing `flushdb` after killing all the busy jobs. ``` def factory_reset() do with {:ok, processes} Enum.map(&extract_pid/1) |> Enum.each(&kill_process/1)...

you might want to check out **Exq.Redis.JobQueue.remove_job_from_backup/5** ``` defp extract_pid(process) do process.pid |> String.replace(~r/[]/, "") |> IEx.Helpers.pid() end def kill_process(process) do process |> extract_pid() |> Process.exit(:kill) job_serialized = process.job |>...