0.0.0 • Published 3 years ago

@workerhive/pipeline-worker v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

pipeline-worker

Workhub Pipeline Worker CLI

oclif Version Downloads/week License

Usage

$ npm install -g @workerhive/pipeline-worker
$ pipeline-worker COMMAND
running command...
$ pipeline-worker (-v|--version|version)
pipeline-worker/0.0.0 linux-x64 node-v14.0.0
$ pipeline-worker --help [COMMAND]
USAGE
  $ pipeline-worker COMMAND
...

Commands

pipeline-worker process

Run the pipeline worker in process mode, will watch an input queue from rabbitmq run the command and post the output to the out queue

USAGE
  $ pipeline-worker process --command [CMD] --output [OUTPUT] --input [INPUT]

OPTIONS
  --command        command template to run every message
  --input          where to write job input file, made available to command as {{=it.inputFile}}
  --output         where to find job output file, made available to command as {{=it.outputFile}}

EXAMPLE
  $ pipeline-worker process --input "/tmp/{{=it.input_cid}}" --output "/tmp/{{=it.job_id}}" --command "/usr/bin/ -i {{= it.inputFile}} -o {{= it.outputFile}" 
  processing

See code: src/commands/process.ts

pipeline-worker help [COMMAND]

display help for pipeline-worker

USAGE
  $ pipeline-worker help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help