Skip to content

快速入门 ​

用下面几条命令跑通 gflow 的最小流程。

开始前

先确认 tmux 已安装。没有的话,先看安装。

可选:初始化配置 ​

生成默认配置:

shell
gflowd init

第 1 步:启动调度器 ​

启动守护进程:

shell
gflowd start

TIP

gflowd start 会按 systemd user service(已安装时)→ tmux → 直接进程的顺序 自动选择托管方式,无需关心 daemon 由谁托管。

WARNING

如果 gflowd start 失败,先检查 tmux(或先用 gflowd service install 安装 systemd user service)。

检查状态:

shell
gflowd status

从另一个终端验证:

shell
ginfo

第 2 步:提交任务 ​

shell
gbatch echo 'Hello from gflow!'

第 3 步:查看队列与日志 ​

shell
gqueue

查看日志:

shell
gjob log <job_id>

INFO

通常先用 gqueue 找到任务编号。

第 4 步:停止调度器 ​

shell
gflowd stop

接下来 ​

Released under the MIT License.