== :white_check_mark: ANSWERED == quick question ...
# ask-community
p
== 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
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
sounds good :) So you know if it is documented? Where would I've this info found beside asking?
d
I'll file an issue to include more information about this
❤️ 1
p
awesome!
y
Thanks. i soleved my problem. I had accidentally overwritten ops name