Rahul Berry
Rahul Berry

Reputation: 93

Fail glue job through code(i.e. Manually)

I want to fail the glue job, through code. Is there any approach through which we can do it, in python.

Upvotes: 3

Views: 5057

Answers (1)

Sandeep Fatangare
Sandeep Fatangare

Reputation: 2144

raise Exception("{}:Exception raised: {}".format(job_name, err))

It will throw error and failed glue job.

Upvotes: 4

Related Questions