Skip to content

Conversation

@andy-k-improving
Copy link
Contributor

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.

acarbonetto and others added 17 commits November 7, 2025 12:13
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: 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]>
@andy-k-improving andy-k-improving marked this pull request as ready for review November 27, 2025 20:29
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.
Copy link
Contributor

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)
Copy link
Contributor

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?

Base automatically changed from acarbo/poc_athena_import_table to main November 30, 2025 05:53
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

Successfully merging this pull request may close these issues.

2 participants