Unix Technical Forum

pgagent status always successful

This is a discussion on pgagent status always successful within the pgsql Interfaces Pgadmin Support forums, part of the PostgreSQL category; --> I am new to pgadmin and pgagent and need some help. I am trying to set up a job ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:28 PM
Eric Shuman
 
Posts: n/a
Default pgagent status always successful

I am new to pgadmin and pgagent and need some help.

I am trying to set up a job in pgadmin3 that runs automatically through
pgagent. I want the job to stop if any of the steps fail. Some of the steps
are bash scripts. I have set the "On Error" flag to fail.

I can get my bash scripts to run through pgagent, but the status of the
script always comes back as "Successful" with a result of "1" (in the
statistics section for the step in pgadmin), this happens even if I use an
invalid filename for the script. I have also tried exiting the scripts with
various exit codes and have used "set -e" with out effect.

Is this a bug or am I missing something obvious? Can anyone give me some
advice on setting up jobs?


Thanks for the help,

~ Eric





---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:06 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com