Call back when abort job

Romain_L
Romain_L Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer Posts: 13 ✭✭✭✭

Hello,
I have a question about the manual shutdown of jobs in DSS.
I am using a python recipe that calls an external service to DSS in http on another server.
I use a classic HTTP method, the problem is that if I kill the job manually, it kills the process without stopping the call.I would like that before killing the process I can send a last http request to stop the external service.
I don't know if I've made myself clear.
Thanks in advance for your answers Have a nice day


Operating system used: Linux

Tagged:

Best Answer

  • HarizoR
    HarizoR Dataiker, Alpha Tester, Registered Posts: 138 Dataiker
    Answer ✓

    Hi Romain,

    Unfortunately it is not possible to embed additional logic when manually aborting a recipe. A possible workaround would be to create a macro that would execute your termination logic before aborting the recipe.

    Using the DSS job API, you should be able to retrieve the recipe's job and abort it properly.

    Hope this helps!

    Best,

    Harizo

Answers

  • Romain_L
    Romain_L Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer Posts: 13 ✭✭✭✭

    Thank you very much for your answer and your suggestions !

    Best,

    Romain

Setup Info
    Tags
      Help me…