Skip to content

Commit

Permalink
Use sys.exit(0) to exit from program for k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpmcmanus committed Aug 28, 2024
1 parent 6dd4862 commit 320c572
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run/geotiff2cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ def main(**kwargs):
except OSError as err:
logger.exception(err)

# Use sys.exit(0) to exit from program for k8s
logger.info('Use sys.exit(0) to exit from program for k8s')
sys.exit(0)

if __name__ == "__main__":
parser = argparse.ArgumentParser()

Expand Down

0 comments on commit 320c572

Please sign in to comment.