Skip to content

AWS Glue Job runs indefinitely after exception occurs when adding Checks to the VerificationSuite #156

Description

@mattwaismann

Describe the bug
When running PyDeequ Checks on an AWS Glue job, if an exception occurs (e.g. accidentally calling hasCompletenss(...) instead of hasCompleteness(...)), the Glue job will keep running indefinitely.

To Reproduce
Glue 4.0
deequ-2.0.4-spark-3.3.jar
python-deequ 1.1.0

check_result = (
        VerificationSuite(spark)
        .onData(df)
        .addCheck(
            check.isComplete("primary_key")
            .hasCompletenss("product_name", lambda x: x > 0.999) #notice the typo
        )
        .run()

Expected behavior
The expectation is that when errors such as this occur, the Glue job stops running or an exception is thrown so the callback server and spark session can be shut down:

Screenshots
In the CloudWatch Glue error logs you see that the job continues polling for executor status:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions