Skip to content

Commit

Permalink
For cleanup_processes do not exit if invalid syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
akira committed Mar 24, 2017
1 parent 1a8c9a2 commit 4f4f187
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/exq/stats/server.ex
Expand Up @@ -103,7 +103,11 @@ defmodule Exq.Stats.Server do
end

def handle_call({:cleanup_host_stats, namespace, host}, _from, state) do
JobStat.cleanup_processes(state.redis, namespace, host)
try do
JobStat.cleanup_processes(state.redis, namespace, host)
rescue
e -> Logger.error("Error cleaning up processes - #{Kernel.inspect e}")
end
{:reply, :ok, state}
end

Expand Down

0 comments on commit 4f4f187

Please sign in to comment.