-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to properly shutdown app with Mnesia backed queue #6
Comments
Hi @raulintosh, Also, are you able to reproduce this issue on a fresh phoenix app keeping all the other things same? |
I'm having what I believe is the same issue, in that if the application isn't shut down properly I get this error on attempting to restart it. Removing the mnesia tables and running setup again will fix the problem, but concerns me because I could potentially lose failed jobs.
That line 73 on the server supervisor is trying to enumerate over the incomplete jobs but something's going wrong there. |
Hi Carter,
Can you please describe the steps I can take to reproduce this issue?
Please also describe the details of your environment (OS name and version,
Elixir/Erlang version and prod/dev environment, etc.).
|
Elixir 1.5.1 The easiest way is to ctrl-c then ctrl-k after mix phx.server, but I also had the issue when a config file was changed while phoenix was running (it errors out, saying you need to restart). I did just find that if I start a separate iex -S mix on the same project, and run Que.ServerSupervisor.start_link it returns:
And then the next time I try running mix phx.server it will start up OK. Not sure why. |
having same problem on start:
if i add to the configurations of my app: |
Hi @AsharDweedar, your issue seems different. What Elixir/OTP/OS versions are you on? |
Elixir (1.6.6) , Erlang/OTP 20, ubuntu 16.04 |
@AsharDweedar it looks like you're calling either |
i have this in my
I have to remove the file at each start of the App |
Yes, and that's the issue here. That is supposed to be called only once
when setting up production databases. Since you put it in Application, it
tries to create the database every time the application starts which causes
an exception. Just remove the line and it should be fine.
… |
Hello @sheharyarn, I have an phoenix app that use a lot of Que Workers to process events data.
I has configured Mnesia to store the queue, every time that I need to restart the app I need to delete the mnesia tables and run Que.Persistence.Mnesia.setup! again.
Do yo know which procedure I must follow to stop Que properly.
Elixir 1.5.1
Phoenix 1.3.0
Que 0.4.1
Best regards.
Raul
The text was updated successfully, but these errors were encountered: