pgadmin-org / pgagent

pgAgent - A job scheduler for PostgreSQL
https://www.pgadmin.org/
Other
103 stars 41 forks source link

Wrong step status for batch jobs #12

Closed jimjonesbr closed 5 years ago

jimjonesbr commented 6 years ago

Environment: pgAgent 3.4.1-2, Ubuntu 16.04, pgAdmin 4 (1.4), Python 2.7.12, PostgreSQL 9.5

pgAgent seems to ignore the exit code of batch steps when the job contains also SQL steps. If the job only contains batch steps the status is shown correctly, namely 0 for 's' and 1 for 'f'. Strangely, if there are also SQL steps in the same job, the status is always shown as 's', no matter what exit code is delivered by the application (a jar file, in my case)

image

I would very much appreciate any suggestion from the experts!

repo-lockdown[bot] commented 5 years ago

Thanks for your Pull Request! :smile: This repo on GitHub is just a mirror of our real git repositories though, and can't really handle PRs. :frowning: Hopefully you can redo the PR, and direct it to the git.postgresql.org repos? We have a developer guide, if that helps: https://wiki.postgresql.org/wiki/So,_you_want_to_be_a_developer%3F. If this was a PR for pgAdmin, please visit https://www.pgadmin.org/docs/pgadmin4/dev/submitting_patches.html.