Hi team, is there a way to terminate a job from se...
# ask-community
m
Hi team, is there a way to terminate a job from sensor by run_id? Thank you!
🤖 1
s
cc @prha @jamie
j
I believe you will need to use the graphql API to do this. Here's the docs for the API, the
TerminateRun
mutation should do what you want (docs)
m
@jamie Thank you so much! I also want to ask, how can i limit job running by time limit?
j
I don't know of a dagster native way to limit job run time. spitballing here, but if you're using k8s you may be able to limit pod running time, which could effectively do the same thing.
m
@jamie thank you! Also i want to notice, that we can write a sensor, that will cancel overtime jobs, but in my implementation i need to pass start_time as a job tag