All Projects → quantum-elixir → Quantum Core

quantum-elixir / Quantum Core

Licence: apache-2.0
⌚ Cron-like job scheduler for Elixir

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to Quantum Core

Gocron
定时任务管理系统
Stars: ✭ 4,198 (+120.37%)
Mutual labels:  scheduler, cron, crontab
Cronicle
A simple, distributed task scheduler and runner with a web based UI.
Stars: ✭ 979 (-48.61%)
Mutual labels:  scheduler, cron, crontab
Deno cron
A cron Job scheduler for Deno that allows you to write human readable cron syntax with tons of flexibility
Stars: ✭ 35 (-98.16%)
Mutual labels:  scheduler, cron, crontab
croner
Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.
Stars: ✭ 169 (-91.13%)
Mutual labels:  cron, crontab, scheduler
asparagus
An easy to use task scheduler for distributed systems
Stars: ✭ 14 (-99.27%)
Mutual labels:  cron, crontab, scheduler
Automation-using-Shell-Scripts
Development Automation using Shell Scripting.
Stars: ✭ 41 (-97.85%)
Mutual labels:  cron, crontab, scheduler
Bree
🚥 The best job scheduler for Node.js and JavaScript with cron, dates, ms, later, and human-friendly support. Works in Node v10+ and browsers, uses workers to spawn sandboxed processes, and supports async/await, retries, throttling, concurrency, and graceful shutdown. Simple, fast, and lightweight. Made for @ForwardEmail and @ladjs.
Stars: ✭ 933 (-51.02%)
Mutual labels:  scheduler, cron, crontab
php-cron-expr
Ultra lightweight, Dependency free and Super Fast Cron Expression parser for PHP
Stars: ✭ 42 (-97.8%)
Mutual labels:  cron, crontab, scheduler
Go Quartz
Simple, zero-dependency scheduling library for Go
Stars: ✭ 118 (-93.81%)
Mutual labels:  scheduler, cron, crontab
Geoip Updater
Download and update MaxMind's GeoIP2 databases on a time-based schedule
Stars: ✭ 29 (-98.48%)
Mutual labels:  scheduler, cron
Pg cron
Run periodic jobs in PostgreSQL
Stars: ✭ 1,002 (-47.4%)
Mutual labels:  scheduler, cron
Simple scheduler
An enhancement for Heroku Scheduler + Sidekiq for scheduling jobs at specific times.
Stars: ✭ 127 (-93.33%)
Mutual labels:  scheduler, cron
Tiktok
Python web visualize build on the awesome web framework sanic
Stars: ✭ 55 (-97.11%)
Mutual labels:  scheduler, cron
Crontab
⏰ Cron expression generator
Stars: ✭ 44 (-97.69%)
Mutual labels:  cron, crontab
Cron Editor
cron editor
Stars: ✭ 22 (-98.85%)
Mutual labels:  cron, crontab
Vue Cron Generator
Cron Generator Implemented by Vue.js and Element-ui(基于Vue&Element-UI构建的在线Cron表达式生成器)
Stars: ✭ 48 (-97.48%)
Mutual labels:  cron, crontab
Go Crond
⏰ Cron daemon written in golang (for eg. usage in docker images)
Stars: ✭ 59 (-96.9%)
Mutual labels:  cron, crontab
Jiacrontab
简单可信赖的任务管理工具
Stars: ✭ 1,052 (-44.78%)
Mutual labels:  scheduler, crontab
Sidekiq Scheduler
Lightweight job scheduler extension for Sidekiq
Stars: ✭ 1,198 (-37.11%)
Mutual labels:  scheduler, cron
Ppgo job
PPGo_Job是一款可视化的、多人多权限的、一任务多机执行的定时任务管理系统,采用golang开发,安装方便,资源消耗少,支持大并发,可同时管理多台服务器上的定时任务。
Stars: ✭ 1,152 (-39.53%)
Mutual labels:  cron, crontab

Quantum

Financial Contributors on Open Collective CI Coverage Status Module Version Hex Docs Total Download License Last Updated

This README follows master, which may not be the currently published version. Here are the docs for the latest published version of Quantum.

Cron-like job scheduler for Elixir.

Setup

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

1. the list of dependencies:

defp deps do
  [
    {:quantum, "~> 3.0"}
  ]
end

2. and create a scheduler for your app:

defmodule Acme.Scheduler do
  use Quantum, otp_app: :your_app
end

3. and your application's supervision tree:

defmodule Acme.Application do
  use Application

  def start(_type, _args) do
    children = [
      # This is the new line
      Acme.Scheduler
    ]

    opts = [strategy: :one_for_one, name: Acme.Supervisor]
    Supervisor.start_link(children, opts)
  end
end

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 :acme, Acme.Scheduler,
  debug_logging: false

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

Otherwise feel free to open an issue. Please include debug logs.

Usage

Configure your cronjobs in your config/config.exs like this:

config :acme, Acme.Scheduler,
  jobs: [
    # Every minute
    {"* * * * *",      {Heartbeat, :send, []}},
    # Every 15 minutes
    {"*/15 * * * *",   fn -> System.cmd("rm", ["/tmp/tmp_"]) end},
    # Runs on 18, 20, 22, 0, 2, 4, 6:
    {"0 18-6/2 * * *", fn -> :mnesia.backup('/var/backup/mnesia') end},
    # Runs every midnight:
    {"@daily",         {Backup, :backup, []}}
  ]

More details on the usage can be found in the Documentation

Contribution

This project uses the Collective Code Construction Contract (C4) for all code changes.

"Everyone, without distinction or discrimination, SHALL have an equal right to become a Contributor under the terms of this contract."

TL;DR

  1. Check for open issues or open a new issue to start a discussion around a problem.
  2. Issues SHALL be named as "Problem: description of the problem".
  3. Fork the quantum-elixir repository on GitHub to start making your changes
  4. If possible, write a test which shows that the problem was solved.
  5. Send a pull request.
  6. Pull requests SHALL be named as "Solution: description of your solution"
  7. Your pull request is merged and you are added to the list of contributors

Code Contributors

This project exists thanks to all the people who contribute.

Contributors

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

Organization0 Organization1 Organization2 Organization3 Organization4 Organization5 Organization6 Organization7 Organization8 Organization9

Copyright and License

Copyright (c) 2015 Constantin Rack

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].