0.0.0 • Published 3 years ago
@workerhive/pipeline-worker v0.0.0
pipeline-worker
Workhub Pipeline Worker CLI
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
0.0.0
3 years ago