-
Notifications
You must be signed in to change notification settings - Fork 1
Standalone CLI client tool
The CLI client provides five subcommands:
-
run: Run plugin until finished and get the resulting files in a local directory -
submit: Submit plugin for execution and return without waiting for the plugin to finish -
poll: Keep polling for the execution status of a previously submitted plugin until it finishes -
status: Perform a single check on the execution status of a previously submitted plugin -
download: Download the output files of a previously submitted plugin that has already finished
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-10Run 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-11Submit 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/inSubmit 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-11Keep polling for the execution status of a previously submitted plugin until it finishes:
$> pfconclient http://localhost:30006/api/v1/ chris-jid-12 pollPerform a single check on the execution status of a previously submitted plugin:
$> pfconclient http://localhost:30006/api/v1/ chris-jid-13 statusDownload 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