Martin Carlsson
10/18/2021, 11:37 AMraaid
10/18/2021, 12:05 PM@solid
def my_solid(context):
# your code
response = requests.get("<http://fakewebsite.com|fakewebsite.com>")
if response.status_code != 200:
# if additional logging desired, add here
raise requests.HTTPError(f"Got non-200 response: {response.status_code}")
Might be a better way to do it but this is a fairly simple way that comes to mind. The error would stop the rest of the pipeline from executing.Martin Carlsson
10/18/2021, 12:06 PMmax
10/18/2021, 3:19 PMdagster.Failure
Martin Carlsson
10/18/2021, 3:21 PM