Module: SfCli::Sf::Data::Resume
- Included in:
- Core
- Defined in:
- lib/sf_cli/sf/data/resume.rb
Defined Under Namespace
Classes: JobInfo
Instance Method Summary collapse
-
#resume(job_id:, target_org: nil, api_version: nil) ⇒ JobInfo
View the status of a bulk job.
Instance Method Details
#resume(job_id:, target_org: nil, api_version: nil) ⇒ JobInfo
View the status of a bulk job. The job info object has methods to check the job status:
-
opened?
-
upload_completed?
-
in_progress?
-
completed?
To know job status more, take a look at the bulk API developer guide
77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/sf_cli/sf/data/resume.rb', line 77 def resume(job_id:, target_org: nil, api_version: nil) flags = { :"job-id" => job_id, :"target-org" => target_org, :"api-version" => api_version, } json = exec(__method__, flags: flags, redirection: :null_stderr) json['result'].delete '$' JobInfo.new(**json['result']) end |