登录 注册
自动化与工作流
2,418
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
Elixir
语言
创建时间
最近更新

项目能做什么

面向 Elixir 的类 Cron 定时任务调度器。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Quantum

[![.github/workflows/branch_main.yml](https://github.com/quantum-elixir/quantum-core/actions/workflows/branch_main.yml/badge.svg)](https://github.com/quantum-elixir/quantum-core/actions/workflows/branch_main.yml)
[![Coverage Status](https://coveralls.io/repos/quantum-elixir/quantum-core/badge.svg?branch=main)](https://coveralls.io/r/quantum-elixir/quantum-core?branch=main)
[![Module Version](https://img.shields.io/hexpm/v/quantum.svg)](https://hex.pm/packages/quantum)
[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/quantum/)
[![Total Download](https://img.shields.io/hexpm/dt/quantum.svg)](https://hex.pm/packages/quantum)
[![License](https://img.shields.io/hexpm/l/quantum.svg)](https://github.com/quantum-elixir/quantum-core/blob/main/LICENSE)
[![Last Updated](https://img.shields.io/github/last-commit/quantum-elixir/quantum-core.svg)](https://github.com/quantum-elixir/quantum-core/commits/main)

> **This README follows main, which may not be the currently published version**. Here are the
[docs for the latest published version of Quantum](https://hexdocs.pm/quantum/readme.html).

[Cron](https://en.wikipedia.org/wiki/Cron)-like job scheduler for [Elixir](http://elixir-lang.org/).

## Setup

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

**1. the list of dependencies:**
```elixir
defp deps do
  [
    {:quantum, "~> 3.0"}
  ]
end
```

**2. and create a scheduler for your app:**
```elixir
defmodule Acme.Scheduler do
  use Quantum, otp_app: :your_app
end
```

**3. and your application's supervision tree:**
```elixir
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.

```elixir
config :logger, level: :debug
```

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

```elixir
config :acme, Acme.Scheduler,
  debug_logging: false
```

If you encounter any problems with `quantum`, please search if there is already an
  [open issue](https://github.com/quantum-elixir/quantum-core/issues) addressing the problem.

Otherwise feel free to [open an issue](https://github.com/quantum-elixir/quantum-core/issues/new). Please include debug logs.

## Usage

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

```elixir
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
阅读完整原文

商业机会分析 AI 生成

Quantum Web Dashboard (Phoenix LiveView UI 插件)

产品构想针对 Quantum 仅提供纯代码配置、缺乏可视化界面的痛点,开发一个开箱即用的 Phoenix LiveView 插件(商业版或双许可证),提供任务查看、手动触发、执行历史记录与日志查看功能。
核心功能实时任务运行状态看板、历史执行日志查询、一键手动触发任务、动态暂停/恢复任务、失败告警对接(Webhook/Slack)。
目标用户使用 Phoenix 框架且依赖 Quantum 的中小型团队、独立全栈开发者。
难度/周期中等 · 1-2 个月 · 成本:极低(主要是开发机与基本测试环境)
收费模式按项目授权收费(License key 单站点售卖,如 $49-$149)或分个人开源版/企业功能增强版(Open-core 模式,参考 Oban Web)。
竞争风险Elixir 生态中已有 Oban 这种强势的后台任务库(且 Oban 自带商业化 Web 插件),Quantum 用户可能会直接被 Oban 替代或分流。
依据 数据支持的判断

分布式集群增强扩展包 (Quantum Cluster Pro)

产品构想为 Quantum 提供基于 Redis/Postgres 或分布式 Erlang 节点的集群选主与任务防并发执行插件,解决多节点重复跑定时任务的生产级痛点。
核心功能分布式互斥锁(Leader Election / Distributed Locking)、节点故障转移、持久化配置存储支持、分布式任务追踪与 OpenTelemetry 集成。
目标用户将 Elixir 部署在 Kubernetes 或多节点环境的中大型企业后端团队。
难度/周期较高 · 2-3 个月 · 成本:低(多节点测试环境成本)
收费模式商业企业库授权(年度订阅制,如 $299-$999/年)或提供源码访问权的赞助者专属插件。
竞争风险分布式调度复杂度高,容易出现边缘场景的锁竞争 Bug;若 Elixir 企业用户普遍选用 Oban Pro 则该市场空间狭窄。
依据 AI推测

云端轻量 Cron 外部触发与告警监控 SaaS

产品构想构建与框架解耦但深度适配 Elixir/Quantum 的健康监控服务,通过心跳上报监测 Quantum 任务是否准时运行、超时或死掉。
核心功能Cron 任务未按时运行告警(Dead man's snitch 机制)、耗时异常分析、Elixir 客户端轻量集成 SDK、多通道告警(短信/邮件/PagerDuty)。
目标用户负责线上生产环境稳定性的 Elixir 运维人员与研发团队。
难度/周期中等 · 1.5-2.5 个月 · 成本:中等(需要稳定运行的 SaaS 基础架构与告警服务通道)
收费模式SaaS 月度订阅制(免费监控 3 个任务,高级版 $9-$49/月)。
竞争风险同类成熟通用产品极多(如 Cronitor、Healthchecks.io),单纯靠 Elixir/Quantum 垂直细分切入难以形成足够竞争壁垒。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
litvinovtd/qeli 中文介绍暂未生成
Self-hosted, censorship-resistant VPN with REALITY / anti-DP
278 Rust
microsoft/qsharp-language 中文介绍暂未生成
Official repository for design of the quantum programming la
250 ANTLR
munich-quantum-toolkit/core 中文介绍暂未生成
MQT Core - Reusable C++20 and Python libraries for quantum c
136 C++
Quantova/QCore.js 中文介绍暂未生成
Quantova's client core for JavaScript and WebAssembly. Post
135 JavaScript
KOSASIH/stable-pi-core 中文介绍暂未生成
Stable-Pi-Core is a next-generation decentralized ecosystem
117 Python
MeikelLP/quantum-core-x 中文介绍暂未生成
Metin2 open source server emulator written in modern C#
112 C#
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 ,最近推送 ,发布过 50 个 Release
社区活跃Star 2,418 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/quantum-elixir/quantum-core.git
cd quantum-core
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。