is there a special way to connect to the graphql A...
# dagster-plus
c
is there a special way to connect to the graphql API on Cloud? I can't seem to get it to work. here's my code
Copy code
@run_failure_sensor
def run_execution_interrupted_sensor(context: RunFailureSensorContext):
    client = DagsterGraphQLClient(hostname="kipptaf.dagster.cloud")

    for event in context.get_step_failure_events():
        run_status = client.get_run_status(event.logging_tags["run_id"])

        <http://context.log.info|context.log.info>(run_status)
I tried passing port 3000 like in the docs, but it just hangs and doesn't return anything
w/o the port, it returns a 401 error
a
https://github.com/dagster-io/dagster/discussions/7772 what are you trying to accomplish?
context.instance
has python APIs that may contain what you are looking for
or in this case you may just be looking for
context.dagster_run.status
c
I'm ultimately trying to execute a mutation to a run re-execution but when that was timing out I tried something simpler like getting the run status
saw your discussion link on the other thread, and that looks like what I'm missing https://github.com/dagster-io/dagster/discussions/7772
👍 1
❤️ 1