Skip to content

Access intermediate storage URI #3126

Answered by schrockn
amarrella asked this question in Q&A
Discussion options

You must be logged in to vote

Yes you should be able to do this but it takes a little doing. The internal implementation is a bit overabstracted as you'll see.

To get access to the intermediate storage during computation you can get here:

@solid
def a_solid(context):
    print(context.get_system_context().intermediate_storage)

@pipeline
def a_pipeline():
    a_solid()

And then to fish out the s3 uri it is something like this. Note that these are internal APIs and liable to change at any time. The future structure will be dramatically more simple to interact with.

from dagster import pipeline, solid, execute_pipeline
from dagster.core.execution.plan.objects import StepOutputHandle

@solid
def a_solid(context):
    sy…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amarrella
Comment options

Answer selected by amarrella
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants