# ask-community

Eduardo Muñoz

03/23/2023, 11:50 AM
Hey all, What would be the best way of identifying and stopping long running jobs?


03/23/2023, 2:17 PM
One option could be to have a run_status_sensor that looks for RUNNING jobs and then determines how long they have been running. You might be able to issue cancel requests directly in the sensor (i’m not super sure about this, i’ve never tried it and it’s not really a standard usage pattern) or you could send an alert to slack or email or something to tell you to manually cancel the job

Eduardo Muñoz

03/23/2023, 2:50 PM
i like this idea, especially if we could automate the run stoppage with a notification otherwise only a notification would be acceptable i was also wondering if querying the runs table + sending a request to the dagit server would be a good solution