Skip to content

Commit

Permalink
kill the worker with exit code -1;
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesrichter committed Sep 29, 2023
1 parent a62bbdf commit ecc822d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion koi_core/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def main():
if retries == 0:
# if the retry counter is initilizes with a negative value, we will try forever
logging.error("koi api is offline, giving up")
raise ex
sys.exit(-1)

Check warning on line 247 in koi_core/worker.py

View check run for this annotation

Codecov / codecov/patch

koi_core/worker.py#L247

Added line #L247 was not covered by tests

retries -= 1
logging.error("koi api is offline, retrying in %d seconds", opt.sleep_retry)
Expand Down

0 comments on commit ecc822d

Please sign in to comment.