Consolidater
Bases: Client
Source code in geocube/consolidater.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
get_job(job_id, log_page=0, log_limit=1000)
Get job by id. Logs are loaded by pages, because some big jobs have too many logs to fit in a gRPC response.
Source code in geocube/consolidater.py
28 29 30 31 32 33 34 35 36 |
|
job(name)
Get job by name. Shortcut for ListJobs(name)[0]. Only few logs are loaded.
Source code in geocube/consolidater.py
20 21 22 23 24 25 26 |
|
list_jobs(name_like='')
List jobs by name name_like: pattern of the name. * and ? are supported to match all or any character.
Source code in geocube/consolidater.py
11 12 13 14 15 16 17 18 |
|
remove_terminated_jobs(name_like='', state='')
Remove all the jobs from the Geocube given a name pattern (by default, all terminated jobs) name_like: pattern of the name. * and ? are supported to match all or any character. state: state of the jobs to be removed.
Source code in geocube/consolidater.py
55 56 57 58 59 60 61 62 |
|
wait_job(job, wait_secs=15, verbose=True)
Wait for the job to finish or fail. If the execution level is step-by-step, it will automatically continue. If verbose=True, the last log is printed every time a state change is detected.
Source code in geocube/consolidater.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|