We recently recompiled pgAgent 3.3.0 for our Centos x86 64 environment
to over come the problem of steps with a non-zero result codes being
reported as successful.
What appears to be happening is if the first step has a non-zero result
then it correctly has the status of Failed but if it is a later step that
is non-zero then it always has Successful.

To test this is setup a job of two steps and ran it in two orders
 Job: 'Test'
     Step: 1.exit 1, Definition: exit 1; - Result 1, Status: Failed
    Step: 2.exit 0, Definition: exit 0; - <not ran>

  Job: 'Test'
    Step: 1.exit 0, Definition: exit 0; - Result 0, Status: Successful
    Step: 2.exit 1, Definition: exit 1; - Result 1, Status: Successful

Does anyone any ideas of what is causing this behaviour or how to work
around this?

Reply via email to