https://dagster.io/ logo
Title
c

Chang Hai Bin

03/09/2023, 10:33 AM
Is there a Python way to terminate/stop a job, given a run_id? I see the documentation has a "TerminateRun" on GraphQL, but not sure whether there is equivalent in Python I can get the "run_id" using Python:
runs: Iterable[DagsterRun] = context.instance.get_runs(
        filters=RunsFilter(
            statuses=[DagsterRunStatus.STARTED],
            created_before=datetime(2023,3,9,23,59,59),
    )
c

chris

03/09/2023, 10:10 PM
no easy way to do this outside of graphql at the moment - we really ought to expand the capabilities of our python graphql client 😅
👍 1