You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why do you return sys.exit(0), instead of sys.exit(1) when amount == 0 or amount < self.min_amount ?
I run it in a simple while loop script in crontab, and it works fine. Except when it meets either of the above criteria, then it goes in an infinite loop and cron then keeps the jobs stacking.
I solve this problem with a timeout, but I guess it would be nicer if it just gives a sys.exit(1). But if there is a specific reason why it should give 0, then I really like to know.
Thanks for making this handy tool.
The text was updated successfully, but these errors were encountered:
Hi,
Why do you return sys.exit(0), instead of sys.exit(1) when amount == 0 or amount < self.min_amount ?
I run it in a simple while loop script in crontab, and it works fine. Except when it meets either of the above criteria, then it goes in an infinite loop and cron then keeps the jobs stacking.
I solve this problem with a timeout, but I guess it would be nicer if it just gives a sys.exit(1). But if there is a specific reason why it should give 0, then I really like to know.
Thanks for making this handy tool.
The text was updated successfully, but these errors were encountered: