← 全部工具

bull-repl

热度 65 更新于 开发与构建

Bull / BullMQ queue command line REPL

npmauto-collected

安装

npm
npm install -g bull-repl

通过 npm 安装。

bull-repl

Bull / BullMQ queue command line REPL.

Version compatibility

  • For bull 3.x.x use bull-repl@latest (0.x.x)
  • For bullmq use bull-repl@next (1.x.x)

Install

npm install bull-repl -g

Run

bull-repl

Overview help

help
  Commands:

    help [command...]                  Provides help for a given command.
    exit                               Exits application.
    connect [options] <queue>          Connect to bull queue
    connect-list                       List of saved connections
    connect-rm <name>                  Remove saved connection
    connect-save <name>                Save current connection
    connect-to <name>                  Connect to saved connection
    stats                              Count of jobs by type
    active [options]                   Fetch active jobs
    waiting [options]                  Fetch waiting jobs

failed [options] Fetch failed jobs delayed [options] Fetch delayed jobs pause [options] Pause current queue resume [options] Resume current queue from pause get <jobId... Get job add [options] <data Add job to queue e.g. add '{"x": 1}' rm [options] <jobId... Remove job retry [options] <jobId... Retry job retry-failed [options] Retry first 100 failed jobs promote [options] <jobId... Promote job fail [options] <jobId <reason Move job to failed complete [options] <jobId <data Move job to completed e.g. complete 1 '{"x": 1}' clean [options] <period Clean queue for period ago, period format - https://github.com/zeit/ms#examples logs [options] <jobId Get logs of job log <jobId <data Add log to job events-on Turn on logging of queue events events-off Turn off logging of queue events


### Connect help

connect --help

Usage: connect [options] <queue

Connect to bull queue

Options: