# Great Expectations Task


A collection of tasks for interacting with Great Expectations deployments and APIs.

Note that all tasks currently require being executed in an environment where the great expectations configuration directory can be found; learn more about how to initialize a great expectation deployment on their Getting Started docs.

# RunGreatExpectationsCheckpoint

class

prefect.tasks.great_expectations.checkpoints.RunGreatExpectationsCheckpoint

(checkpoint_name=None, context_root_dir=None, runtime_environment=None, run_name=None, **kwargs)[source]

Task for running a Great Expectations checkpoint. For this task to run properly, it must be run above your great_expectations directory or configured with the context_root_dir for your great_expectations directory on the local file system of the worker process.

Args:

  • checkpoint_name (str): the name of the checkpoint; should match the filename of the checkpoint without .py
  • context_root_dir (str): the absolute or relative path to the directory holding your great_expectations.yml
  • runtime_environment (dict): a dictionary of great expectation config key-value pairs to overwrite your config in great_expectations.yml
  • run_name (str): the name of this Great Expectation validation run; defaults to the task slug
  • **kwargs (dict, optional): additional keyword arguments to pass to the Task constructor

methods:                                                                                                                                                       

prefect.tasks.great_expectations.checkpoints.RunGreatExpectationsCheckpoint.run

(checkpoint_name=None, context_root_dir=None, runtime_environment=None, run_name=None, **kwargs)[source]

Task run method.

Args:

  • checkpoint_name (str): the name of the checkpoint; should match the filename of the checkpoint without .py
  • context_root_dir (str): the absolute or relative path to the directory holding your great_expectations.yml
  • runtime_environment (dict): a dictionary of great expectation config key-value pairs to overwrite your config in great_expectations.yml
  • run_name (str): the name of this Great Expectation validation run; defaults to the task slug
  • **kwargs (dict, optional): additional keyword arguments to pass to the Task constructor
Raises:



    This documentation was auto-generated from commit 4a4acb5
    on October 23, 2020 at 16:22 UTC