Ramana,I checked internally and the suggestion is to structure your code in such a way that it returns from the main function when a certain condition is met. I modified your code to what you see below.# sys.exit(0) equivalent
def main():
bucket_...
Check out dbdemos.ai, you may be interested in the example of applying tests to your DLT pipeline to ensure data quality. https://www.dbdemos.ai/demo.html?demoName=dlt-unit-test