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

Peter Arwanitis

04/28/2023, 2:55 PM
== ANSWERED == quick question when a job is started, there is in Launchpad an option to "Terminate" • how to catch this in my job/op-implementation in case I want to cancel a long-running web-request?
d

daniel

04/28/2023, 2:59 PM
Hi Peter - this would manifest as a DagsterExecutionInterruptedError being raised your op (kind of like a KeyboardInterrupt). So a try: except: block should catch it
One gotcha is that DagsterExecutionInterruptedError (like KeyboardInterrupt) extends BaseException but not Exception - so
except Exception:
wont' catch it
(but
except:
will)
p

Peter Arwanitis

04/28/2023, 3:06 PM
sounds good :) So you know if it is documented? Where would I've this info found beside asking?
d

daniel

04/28/2023, 3:06 PM
I'll file an issue to include more information about this
❤️ 1
p

Peter Arwanitis

04/28/2023, 3:06 PM
awesome!
y

Yavuz Azal

05/02/2023, 6:27 AM
Thanks. i soleved my problem. I had accidentally overwritten ops name