Publish and Consume Events¶
- Publish - Publish a new event into the pipeline from a data source
- Consume - Consume the transformed event from the pipeline in a data sink
- Consume Failed - Consume the events that failed from the pipeline in a
- Validate Credentials - Validate pipeline credentials
Publish¶
Publish a new event into the pipeline
Usage
Consume¶
Consume the transformed event from the pipeline
Usage
Consume Failed¶
If the transformation failed for any event, they are available in a failed queue. You can consume those events from the pipeline
Usage
Validate Credentials¶
Validate pipeline credentials (pipeline_id
and pipeline_access_token
) from source or sink
Usage
from glassflow import PipelineDataSource, errors
try:
source = PipelineDataSource(pipeline_id="<str value", pipeline_access_token="<str value>")
source.validate_credentials()
except errors.PipelineNotFoundError as e:
print("Pipeline ID does not exist!")
raise e
except errors.PipelineAccessTokenInvalidError as e:
print("Pipeline Access Token is invalid!")
raise e