quantum-elixir / quantum-core

:watch: Cron-like job scheduler for Elixir
https://hexdocs.pm/quantum/
Apache License 2.0
2.32k stars 148 forks source link

disable global #417

Closed ghost closed 4 years ago

ghost commented 5 years ago

Hi,

I have set the following configuration :

config :meerkat_controller, MeerkatController.Scheduler,                                                                                                      
global: false,                                                                                                                                                
  jobs: [                                                                                                                                                     
    cluster_metrics_generation: [                                                                                                                             
      schedule: {:extended, "*/10"}, # Runs every ten seconds,                                                                                                
      run_strategy: Quantum.RunStrategy.Local,                                                                                                                
      task: {Binarytemple.Metrics.ClusterMetricsJob, :build, []}                                                                                         
    ]                                                                                                                                                         
  ]  

But I still see lots of messages like this in the logs indicating that ExecutionBroadcaster is running :

17:38:20.001 [debug] [:nonode@nohost][Elixir.Quantum.ExecutionBroadcaster] Continuing Execution Broadcasting at -576458753997 (2019-09-12T16:38:30)

I'm also using a forked version of swarm and I'd like to avoid that dependency, any advice?

Thanks

ghost commented 5 years ago

I didn't see this - https://github.com/quantum-elixir/quantum-core/commit/d3b1852fcf026c44f82c36a755bf5c381b62a8e6 - are there any plans to push a version to hex.pm with swarm removed ?

ghost commented 5 years ago

Or optional?

maennchen commented 5 years ago

@bryanhuntesl The next major version should be without swarm. It will take some time though until the next version is out.

maennchen commented 4 years ago

Tracked via #411