1.0X Rescale CLI Commands
This section provides a list of various commands the Rescale CLI App supports. You can also go through the Rescale CLI Tutorial for additional information on using CLI commands. Please note the following –
- If you have set up the APIApplication program interface (API) is a set of routines, pr... More key according to methods 2 or 3 in the Simplifying CLI Commands page, you may omit
[-p ]
from the below commands. - If you wish to get help on Rescale CLI Commands, you can use the
-h
flag. Example –java -jar /usr/local/bin/rescale.jar -h
You can obtain information about Rescale CoreA core processor, also known as a central processing unit (C... More Types and the Softwares available using the following commands and flags :
COMMAND | java -jar /usr/local/bin/rescale.jar list-info - [-p ] |
FLAGS | DESCRIPTION |
-c | Retrieves information about RESCALE core types |
-a | Retrieves information about softwares available |
Submit a job
Submits a job on the Rescale platform. You can login to the Rescale platform to check the submitted job.
COMMAND | java -jar /usr/local/bin/rescale.jar submit [-p ] -i |
FLAGS | DESCRIPTION |
1) -q or --quiet | Suppresses all logging output that would normally go to STDOUT. This is useful when piping the script output to another script. |
2) -E or --end-to-end | Runs the job end-to-end : uploading input files, submitting the job, monitoring for the results and downloading the results files. |
3) -f ... | Filter output files to be downloaded after the job finishes. This flag can be used with submit only while running an end-to-end job. |
Stop a job
Submits a request to cleanly shutdown the currently running job
COMMAND | java -jar /usr/local/bin/rescale.jar stop [-p ] -j |
Delete a job
Submits a request to delete a completed job
COMMAND | java -jar /usr/local/bin/rescale.jar delete [-p ] -j |
Check job status
Requests the specified job’s status. Place in a loop to monitor continuously. It is recommended that an exponential backoff algorithm is used to monitor jobs that take long.
COMMAND | java -jar /usr/local/bin/rescale.jar status [-p ] -j |
Submit a job
Submits a job on the Rescale platform. You can login to the Rescale platform to check the submitted job.
COMMAND | java -jar /usr/local/bin/rescale.jar submit [-p ] -i |
FLAGS | DESCRIPTION |
1) -q or --quiet | Suppresses all logging output that would normally go to STDOUT. This is useful when piping the script output to another script. |
2) -E or --end-to-end | Runs the job end-to-end : uploading input files, submitting the job, monitoring for the results and downloading the results files. |
3) -f ... | Filter output files to be downloaded after the job finishes. This flag can be used with submit only while running an end-to-end job. |
Stop a job
Submits a request to cleanly shutdown the currently running job
COMMAND | java -jar /usr/local/bin/rescale.jar stop [-p ] -j |
Delete a job
Submits a request to delete a completed job
COMMAND | java -jar /usr/local/bin/rescale.jar delete [-p ] -j |
Check job status
Requests the specified job’s status. Place in a loop to monitor continuously. It is recommended that an exponential backoff algorithm is used to monitor jobs that take long.
COMMAND | java -jar /usr/local/bin/rescale.jar status [-p ] -j |
Download files from a completed job
Downloads all the result files after the job run.
COMMAND | java -jar /usr/local/bin/rescale.jar sync [-p ] -j |
FLAGS | DESCRIPTION |
-s ... | Output file filtering using “string pattern matching” searching. (Since it happens on the serverA server is a computer system or software program that provi... More side, searching more robust and faster – Recommended) |
-f ... | Output file filtering using “glob” (Happens on the client side).* is a wildcard that will match any string of characters and? is a wildcard that will match any single character |
--exclude ,, ... , | Excludes the specified files from downloading. |
-n | To sync all jobs newer than a specific job. App will create individual directories as – rescale_job_ |
-d | For continuous syncing, the user may specify a sync time. The time in seconds would determine the delay time between two sync attempts |
Download files from a running job
Downloads a specific file from a running job. It downloads a copy of the file (as it exists at that time) to the user’s local directory in which they executed the command. Second, it would adds that same time-sensitive copy of the file to the job’s output, whose name is formatted “download_{timestamp}_{original_filename}”.
COMMAND | java -jar /usr/local/bin/rescale.jar download-file [-p ] -j -f |
FLAGS | DESCRIPTION |
-f ... | Output file filtering using “string pattern matching” (Happens on the client side). * is a wildcard that willmatch any string of characters and ? is a wildcardthat will match any single character Note: This works best in bash, may not work in other shells |
Upload files to Rescale cloud storageCloud storage is a simple and scalable way to store, access,... More
COMMAND | java -jar /usr/local/bin/rescale.jar upload -p -f ... |
FLAGS | DESCRIPTION |
-e | To see an extended set of metadata during upload |
--quiet | To suppress non-json output from the command, if the CLI is being embedded in a larger script. |