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

Supervision Configuration for Cluster Managers #450

Closed maennchen closed 4 years ago

maennchen commented 4 years ago

Allows Implementation of #411

This allows new libraries that start quantum on its own terms. Even the central Supervisor can be overwritten to allow full control.

For better handling with restarts, implementations could also provide a default storage that provides ephemeral storage inside the cluster. This would keep the storage as long as not all nodes in the cluster are restarted at the same time.

maennchen commented 4 years ago

Example Adapter with Swarm: https://github.com/quantum-elixir/quantum-swarm/blob/master/lib/quantum_swarm.ex

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build a030dcf8c86b80411eea764de1eba6b0c9fb43c2-PR-450


Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/quantum/executor_supervisor.ex 1 3 33.33%
lib/quantum/clock_broadcaster.ex 1 4 25.0%
lib/quantum/execution_broadcaster.ex 1 4 25.0%
lib/quantum/job_broadcaster.ex 1 4 25.0%
lib/quantum/node_selector_broadcaster.ex 1 4 25.0%
lib/quantum/task_registry.ex 1 4 25.0%
<!-- Total: 22 39 56.41% -->
Totals Coverage Status
Change from base Build a1ca7c42fe7be5cb2d4efce7cffd369f7dc0fa0b: -4.3%
Covered Lines: 285
Relevant Lines: 336

💛 - Coveralls