Overview
Certain UQL queries, such as schema dropping, projection creation, and algorithm writeback, are designed to run as back-end jobs. The results of some jobs, such as files generated by algorithms, are stored in the graphsets on which they are executed and can be retrieved later, unless cleared.
Showing Jobs
To retrieve all jobs in current graphset:
show().job()
To retrieve the job with id 83
in current graphset:
show().job(83)
It returns the following information for each job:
Field |
Description |
---|---|
Job ID |
ID of the job. Some jobs have sub-jobs with ids <jobId>_1 ,<jobId>_2 , and so on. |
Graph Name |
The graphset on the job executes. |
Type |
Type of the job, such as CREATE_INDEX , CACHE , COMPACT etc. |
Uql |
UQL query of the job. |
Start Time |
Start time of the job. |
End Time |
End time of the job. |
Result |
Results generated by the job, such as output files or statistical summaries from an algorithm. |
Error Msg |
Error message, if any, encountered during the job's execution. |
Status |
Current state of the job, which can be FINISHED , RUNNING , STOPPING , STOPPED or FAILED . |
Progress |
Progress updates for the job, such as indications that the write operation has been started. |
Stopping Jobs
To stop the running job with id 83
in current graphset:
stop().job(83)
Clearing Jobs
To clear all jobs in current graphset that are not running:
clear().job("*")
To clear the job with ID 83
in the current graphset, provided it is not running:
clear().job(83)