v2.4.0

Quantum

:warning: If you're using a version below v2.2.6, please update immediately. :warning:
See Issue #321 for more details.

Setup

To use Quantum in your project, edit the mix.exs file and add Quantum to

1. the list of dependencies:

defpdepsdo[{:quantum,"~> 2.3"},{:timex,"~> 3.0"}]end

2. and create a scheduler for your app:

defmoduleYourApp.SchedulerdouseQuantum.Scheduler,otp_app::your_append

3. and your application's supervision tree:

defmoduleYourApp.ApplicationdouseApplicationdefstart(_type,_args)doimportSupervisor.Spec,warn:falsechildren=[# This is the new lineYourApp.Scheduler]opts=[strategy::one_for_one,name:YourApp.Supervisor]Supervisor.start_link(children,opts)endend

Troubleshooting

To see more transparently what quantum is doing, configure the logger to display :debug messages.

config:logger,level::debug

If you want do use the logger in debug-level without the messages from quantum:

config:your_app,YourApp.Scheduler,debug_logging:false

If you encounter any problems with quantum, please search if there is already an
open issue addressing the problem.