-
Notifications
You must be signed in to change notification settings - Fork 55
Reloading jobs on a running server
Dimitrios Zorbas edited this page Mar 24, 2018
·
2 revisions
You can reload the source for any job on a running Kitto server without restarting it.
Having started you Kitto dashboard app with:
iex --sname kitto -S mix kitto.serverYou can then start another IEx session on the same machine like:
iex --sname opsThen inside the ops session you can run:
GenServer.cast {:runner, :kitto@hostname}, {:reload_job, "jobs/your_job_goes_here.exs"}where you have to replace hostname with the actual hostname of the machine.
:rpc.call :"kitto@hostname", Kitto.Runner, :reload_job, [:runner, "jobs/your_job_goes_here.exs"]Distributed code essentials: http://elixir-lang.org/getting-started/mix-otp/distributed-tasks-and-configuration.html