sheharyarn / que

Simple Job Processing in Elixir with Mnesia :zap:
MIT License
667 stars 32 forks source link

setting :mnesia for Pow breaks non-persistent que #17

Open sensiblearts opened 5 years ago

sensiblearts commented 5 years ago

Is there a way to let que know to ignore the :mnesia :dir config that I set for a different process?

I had que working fine along with Pow auth library.

However, I just went to a multi-node setup, and set the :mnesia :dir for Pow, but I do not need to use persistence for que.

It was running fine yesterday after first time using mnesia, but today I get this:

 ** (EXIT) an exception was raised:
        ** (Memento.Error) Transaction Failed with: {:no_exists, Que.Persistence.Mnesia.DB.Jobs}
            (memento) lib/memento/transaction.ex:178: Memento.Transaction.handle_result/1
            (que) lib/que/server_supervisor.ex:72: Que.ServerSupervisor.resume_queued_jobs/0

If I delete the :mnesia :dir contents before starting, the error goes away