Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement cookbook recipes in connectapi: Viewing Runtime Caches, Deleting Runtime Caches #312

Open
toph-allen opened this issue Oct 9, 2024 · 0 comments
Assignees

Comments

@toph-allen
Copy link
Collaborator

toph-allen commented Oct 9, 2024

Viewing Runtime Caches

library(connectapi)

client <- connect()
get_runtime_caches(client)
# A tibble: 23 × 3
   language version image_name
   <chr>    <chr>   <chr>
 1 R        3.0.2   Local
 2 R        3.1.0   Local
 3 R        3.1.2   Local
 4 R        3.1.3   Local
 5 R        3.2.0   Local
 6 R        3.2.1   Local
 7 R        3.2.2   Local
 8 R        3.3.3   Local
 9 R        3.4.0   Local
10 R        3.4.4   Local
# ℹ 13 more rows
# ℹ Use `print(n = ...)` to see more rows

Notes:

Deleting Runtime Caches

library(connectapi)

client <- connect()
delete_runtime_cache(language = "r", version = "3.0.2")
Deleting runtime cache...
Successfully deleted runtime cache

Notes

  • image_name should default to "Local" so is only required for off-host execution.
  • The server returns a task object. Perhaps it makes sense to have this function poll the task and only return when deletion is complete.
@toph-allen toph-allen self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant