Job to continue to run, even if 1 or more vproc's in it fail

Answered

Comments

2 comments

  • Comment actions Permalink
    Official comment
    Avatar
    Matthias Korn

    Hi Sjors, 

    would it work for you to have exception handling around the procedures? Here's your code.

    -- This procedure throws an exception for test reasons
    create virtual procedure views.throwError (
    ) as
    begin
    RAISE SQLEXCEPTION 'this is bad' ;
    end;;

    -- This could be your sql job definition, we are catching the exception, but not doing anything with it. It would be possible to do logging in the handling part (EXCEPTION E begin ... end)
    begin
    begin
    call "views.throwError" (
    ) ;
    EXCEPTION e
    end
    begin
    call "views.throwError" (
    ) ;
    EXCEPTION e
    end
    end;;
  • 0
    Comment actions Permalink
    Avatar
    Sjors Takes

    That would help indeed, we’re going to implement this. Thanks!

Please sign in to leave a comment.

Powered by Zendesk