Skip to content

Standalone CLI client tool

Jorge edited this page Apr 26, 2021 · 12 revisions

Standalone pfconclient CLI client

The CLI client provides five subcommands:

  1. run: Run plugin until finished and get the resulting files in a local directory
  2. submit: Submit plugin for execution and return without waiting for the plugin to finish
  3. poll: Keep polling for the execution status of a previously submitted plugin until it finishes
  4. status: Perform a single check on the execution status of a previously submitted plugin
  5. download: Download the output files of a previously submitted plugin that has already finished

run subcommand

Run fs plugin until finished using any local input directory and get the resulting files in a local output directory:

$> pfconclient http://localhost:30006/api/v1/ chris-jid-10 run --cmd_args '--saveinputmeta --saveoutputmeta --dir cube/uploads' --cmd_path_flags='--dir' --auid cube --number_of_workers 1 --cpu_limit 1000 --memory_limit 200 --gpu_limit 0 --image fnndsc/pl-simplefsapp --selfexec simplefsapp --selfpath /usr/local/bin --execshell python3 --type fs /tmp/sbin/in /tmp/sbin/out/chris-jid-10

Run ds plugin until finished using the local output directory of a previous plugin as its input directory and get the resulting files in a local output directory:

$> pfconclient http://localhost:30006/api/v1/ chris-jid-11 run --cmd_args '--saveinputmeta --saveoutputmeta --prefix lolo' --auid cube --number_of_workers 1 --cpu_limit 1000 --memory_limit 200 --gpu_limit 0 --image fnndsc/pl-simpledsapp --selfexec simpledsapp --selfpath /usr/local/bin --execshell python3 --type ds /tmp/sbin/out/chris-jid-10 /tmp/sbin/out/chris-jid-11

submit subcommand

Submit fs plugin for execution using any local input directory and return without waiting for the plugin to finish:

$> pfconclient http://localhost:30006/api/v1/ chris-jid-12 submit --cmd_args '--saveinputmeta --saveoutputmeta --dir cube/uploads' --cmd_path_flags='--dir' --auid cube --number_of_workers 1 --cpu_limit 1000 --memory_limit 200 --gpu_limit 0 --image fnndsc/pl-simplefsapp --selfexec simplefsapp --selfpath /usr/local/bin --execshell python3 --type fs /tmp/sbin/in

Submit ds plugin for execution using the local output directory of a previously finished plugin as its input directory and return without waiting for the plugin to finish:

$> pfconclient http://localhost:30006/api/v1/ chris-jid-13 submit --cmd_args '--saveinputmeta --saveoutputmeta --prefix lolo' --auid cube --number_of_workers 1 --cpu_limit 1000 --memory_limit 200 --gpu_limit 0 --image fnndsc/pl-simpledsapp --selfexec simpledsapp --selfpath /usr/local/bin --execshell python3 --type ds /tmp/sbin/out/chris-jid-11

poll subcommand

Keep polling for the execution status of a previously submitted plugin until it finishes:

$> pfconclient http://localhost:30006/api/v1/ chris-jid-12 poll

status subcommand

Perform a single check on the execution status of a previously submitted plugin:

$> pfconclient http://localhost:30006/api/v1/ chris-jid-13 status

download subcommand

Download the output files of a previously submitted plugin that has already finished:

$> pfconclient http://localhost:5006/api/v1/ chris-jid-13 download /tmp/sbin/out/chris-jid-13
Clone this wiki locally