Register a job kill order for one or more jobs associated with a content item. Requires Connect 2022.10.0 or newer.
Arguments
- content
A Content object, as returned by
content_item()- keys
Optional. One or more job keys, which can be obtained using
get_jobs(content). If no keys are provided, will terminate all active jobs for the provided content item.
Value
A data frame with the status of each termination request.
app_id: The content item's identifier.app_guid: The content item's GUID.job_key: The job key.job_id: The job's identifier.result: The result string returned by Connect.code: An error code,NAif the request was successful.error: An error message,NAif the result was successful.
Note that app_id, app_guid, job_id, and result are NA if the
request returns an error.
See also
Other job functions:
get_job(),
get_jobs(),
get_log()
Other content functions:
content_delete(),
content_item(),
content_title(),
content_update(),
create_random_name(),
dashboard_url(),
delete_thumbnail(),
delete_vanity_url(),
deploy_repo(),
get_bundles(),
get_environment(),
get_image(),
get_job(),
get_jobs(),
get_log(),
get_thumbnail(),
get_vanity_url(),
git,
has_thumbnail(),
permissions,
set_image_path(),
set_run_as(),
set_thumbnail(),
set_vanity_url(),
swap_vanity_url(),
swap_vanity_urls(),
verify_content_name()
Examples
if (FALSE) { # \dontrun{
client <- connect()
item <- content_item(client, "951bf3ad-82d0-4bca-bba8-9b27e35c49fa")
result <- terminate_jobs(item)
} # }