Nextdoor / ndscheduler

A flexible python library for building your own cron-like system, with REST APIs and a Web UI.
BSD 2-Clause "Simplified" License
1.08k stars 202 forks source link

Error report #24

Closed ibnbay00 closed 5 years ago

ibnbay00 commented 6 years ago

I test error on running batch/shell file. but job execution status is "Success" and Result is: { "returncode": 1 } Can I print the error on shell script to result trough a Job argument?

And what best practice argument for job shell script?

hnq90 commented 6 years ago

@ibnbay00 You should raise an exception when command's status code is different than 0.

sabw8217 commented 5 years ago

Yes, raise an exception if you want the job to be marked as a failure.