In some cases, How to tell to the supervisor stop restarting the trader? #12
Replies: 1 comment
-
Hi @juanpabloaj, thank you very much for your kind words - I thrilled to know that you like it ❤️ In regards to your question: In normal circumstances when a "worker" process (like the This would be the first "Elixir way" of fixing this problem - it would quickly die 3 times and it wouldn't try to restart it. but we are not using this mechanism as we disabled it by setting the One way to "fix" that would be to add the
inside the Inside the In case of normal supervision it would be enough to log a warning and return I hope that helps, Thank you once again for your feedback and contributions to make this book better 🚀 |
Beta Was this translation helpful? Give feedback.
-
@Cinderella-Man thanks, for your book, it has been really interesting and useful to understand more about Elixir.
I was not sure if it could be the best place to ask questions. If you think that this question is not related to the book please close the issue.
Sometimes when something was wrong when an order is created an error is returned.
it doesn't match with
and the trader is restarted. Great.
But maybe under some circumstances could be useful if the trader stops being restarted, for example, because you need to change some settings.
Does exist some way to tell to the supervisor: stop restarting the trader?
I was thinking about how to match some error cases
but I am not sure about which could be a good way to tell to the supervisor stop restarting the trader.
Or maybe that is not the Elixir way to do things.
What do you think?
Thanks in advice for your feedback.
The full log of those types of cases.
Thanks again.
Beta Was this translation helpful? Give feedback.
All reactions