Reference documentation and code samples for the Cloud Bigtable API class Google::Cloud::Bigtable::LongrunningJob.
LongrunningJob
A resource representing the long-running, asynchronous processing operation. The job can be refreshed to retrieve the result object once the operation has been completed.
Inherits
- Object
 
Methods
#done?
def done?() -> booleanChecks if the processing of the instance operation is complete.
- 
        (boolean) — 
truewhen complete,falseotherwise. 
#error
def error() -> Object, Google::Rpc::Status, nilThe status when the operation associated with this job produced an error.
- 
        (Object, Google::Rpc::Status, nil) — A status object with
the status code and message, or 
nilif no error occurred. 
#error?
def error?() -> booleanChecks if the processing of the instance operation has errored.
- 
        (boolean) — 
truewhen errored,falseotherwise. 
#reload!
def reload!() -> Google::Cloud::Bigtable::Instance::JobReloads the job with current data from the long-running, asynchronous processing of an operation.
- (Google::Cloud::Bigtable::Instance::Job) — The same job instance.
 
#results
def results() -> Object, nilGets the result object of the operation.
- 
        (Object, nil) — 
nilif the operation is not complete. 
#wait_until_done!
def wait_until_done!()Reloads the job until the operation is complete. The delay between reloads will incrementally increase.