https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Aaron T

05/24/2023, 5:06 AM
is there a way to use the graphQL client to launch a partitioned run? I use it to start a partitioned job, but get this error
Cannot access partition_key for a non-partitioned run
. I am using the client as such, and
asset_1_job
is a partitioned job. It runs fine, but I guess when attempting to materialize the asset output there is nothing telling the job what partition_key to materialize -
Copy code
client.submit_job_execution(
    'asset_1_job',
    repository_location_name=DAGSTER_CODE_LOCATION,
    repository_name='__repository__',
    run_config={
        'ops': {
            'asset_1': { ... }
        }
    }
)
o

owen

05/24/2023, 5:20 PM
Hi @Aaron T! I've seen this sort of question before, so I surfaced it to this github discussion, and answered it there
a

Aaron T

05/24/2023, 5:21 PM
awesome! thank you. super simple