-
Notifications
You must be signed in to change notification settings - Fork 0
Example: Start / Stop instance #56
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
* Init commit Signed-off-by: Andy Kwok <[email protected]> * Revise permission check Signed-off-by: Andy Kwok <[email protected]> * Update debug Signed-off-by: Andy Kwok <[email protected]> * Simplify logic Signed-off-by: Andy Kwok <[email protected]> * Add pydoc Signed-off-by: Andy Kwok <[email protected]> --------- Signed-off-by: Andy Kwok <[email protected]>
* Add enum Signed-off-by: Andy Kwok <[email protected]> * Add permission Signed-off-by: Andy Kwok <[email protected]> * Impl - wrapper Signed-off-by: Andy Kwok <[email protected]> * Minimise space Signed-off-by: Andy Kwok <[email protected]> * Consolidate polling interval constant Signed-off-by: Andy Kwok <[email protected]> * Update stop logic Signed-off-by: Andy Kwok <[email protected]> * Consolidate error message Signed-off-by: Andy Kwok <[email protected]> --------- Signed-off-by: Andy Kwok <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
* Static method - Start / stop instance (#48) * Add enum Signed-off-by: Andy Kwok <[email protected]> * Add permission Signed-off-by: Andy Kwok <[email protected]> * Impl - wrapper Signed-off-by: Andy Kwok <[email protected]> * Minimise space Signed-off-by: Andy Kwok <[email protected]> * Consolidate polling interval constant Signed-off-by: Andy Kwok <[email protected]> * Update stop logic Signed-off-by: Andy Kwok <[email protected]> * Consolidate error message Signed-off-by: Andy Kwok <[email protected]> --------- Signed-off-by: Andy Kwok <[email protected]> * Minimise diff Signed-off-by: Andy Kwok <[email protected]> * Lint Signed-off-by: Andy Kwok <[email protected]> --------- Signed-off-by: Andy Kwok <[email protected]> Co-authored-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Andy Kwok <[email protected]> Co-authored-by: Andrew Carbonetto <[email protected]>
* Minimise diff Signed-off-by: Andy Kwok <[email protected]> * Update var position Signed-off-by: Andy Kwok <[email protected]> * Update kwargs Signed-off-by: Andy Kwok <[email protected]> * Update doc Signed-off-by: Andy Kwok <[email protected]> --------- Signed-off-by: Andy Kwok <[email protected]>
* Method skeleton Signed-off-by: Andy Kwok <[email protected]> * Nested future Signed-off-by: Andy Kwok <[email protected]> * Update task name Signed-off-by: Andy Kwok <[email protected]> * make fmt Signed-off-by: Andy Kwok <[email protected]> * Update arg Signed-off-by: Andy Kwok <[email protected]> * Update args Signed-off-by: Andy Kwok <[email protected]> --------- Signed-off-by: Andy Kwok <[email protected]>
Signed-off-by: Andy Kwok <[email protected]>
| This sample script demonstrates AWS Neptune Analytics, which can be paused/resumed via instance_management API calls | ||
| in order to lower operational costs when the instance is not being used temporarily. | ||
| In this example, an instance will be created with demo data, then execute the PageRank algorithm. | ||
| Once PageRank has been computed, we will pause the instance and eventually resume it to run the same PageRank algorithm again. |
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.
Let's hold onto this scenario and maybe update it once we've hooked up the session manager. The stop/start instance doesn't really mean anything here.
|
|
||
| graph_id = os.getenv("NETWORKX_GRAPH_ID") | ||
| # Pause the instance | ||
| await instance_management.stop_na_instance(graph_id) |
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.
what happens if we try and run pagerank after stop? Maybe include a step that catches an error with the instance to say it isn't available?
Summary 📝
Write an overview about it.
Test plan:
Permissions
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.