-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: migrate runtime caches recipe #112
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor stuff to change. Looks great overall!
## Python | ||
|
||
```{.python} | ||
task_id = response.json()["task_id"] | ||
task_status = client.get(f"/v1/tasks/{task_id}") | ||
``` | ||
|
||
```{.python} | ||
>>> task_status.json() | ||
{'id': 'lFvijYN16kjCoal6', | ||
'output': ['Deleting runtime cache...', 'Successfully deleted runtime cache'], | ||
'result': None, | ||
'finished': True, | ||
'code': 0, | ||
'error': '', | ||
'last': 2} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theres a simple way to do this in the SDK ,but this is fine for now. Also, we can split this information out into separate page and link to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that way we could have slightly more complex code that actually polls and prints updates as status changes.
Co-authored-by: Taylor Steinberg <[email protected]>
Co-authored-by: Taylor Steinberg <[email protected]>
This PR migrates the runtime caches recipe.
Addresses #54
Notes, which may require the creation of future issues
rsconnect-python
includes such a feature already, but I chose not to use it here.