Use a non-zero exitcode on errors in scripts

When a worker can't connect to Redis, return
a non-zero exit code so supervisor processes
can act accordingly.
main
Jonas 13 years ago
parent 5c11ea6296
commit c99cab71cd

@ -174,3 +174,4 @@ def main():
interval(args.interval, func, args)
except ConnectionError as e:
print(e)
sys.exit(1)

@ -66,3 +66,4 @@ def main():
w.work(burst=args.burst)
except ConnectionError as e:
print(e)
sys.exit(1)

Loading…
Cancel
Save