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

Jonathan Sims

07/10/2023, 7:51 PM
Is there any way to pause / unpause jobs through the GraphQL API?
I've tried searching the GraphQL playground docs and couldn't find anything:
There is also this: https://docs.dagster.io/concepts/dagit/graphql-client#submitting-a-job-run But that is for individual job runs. All I want to do is unpause the job after it's loaded into the repository without going through the UI.
Maybe I'm using the wrong term. Whatever this switch is called:
t

Tim Castillo

07/10/2023, 7:55 PM
Would
stopRunningSchedule
work for you?
Looks like you caught on right before I hit send 😉 Jobs themselves aren't what's "on or off", but rather a schedule can be "on/off" and trigger a job. so you can turn off a schedule to prevent a job from running.
👍 1
j

Jonathan Sims

07/10/2023, 7:59 PM
Great, that appears to be what I'm looking for. Thanks for the immediate response!