How to run a Checkpoint in terminal
This guide will help you run a Checkpoint in a terminal. This is useful if your pipeline environment or orchestration engine does not have shell access.
Prerequisites: This how-to guide assumes you have:
- Completed the Getting Started Tutorial
- Have a working installation of Great Expectations
- Created at least one Checkpoint
#
Steps- Checkpoints can be run like applications from the command line by running:
great_expectations --v3-api checkpoint run my_checkpointValidation failed!
- Next, observe the output which will tell you if all validations passed or failed.
#
Additional notesThis command will return posix status codes and print messages as follows:
+-------------------------------+-----------------+-----------------------+| **Situation** | **Return code** | **Message** |+-------------------------------+-----------------+-----------------------+| all validations passed | 0 | Validation succeeded! |+-------------------------------+-----------------+-----------------------+| one or more validation failed | 1 | Validation failed! |+-------------------------------+-----------------+-----------------------+