klio_core.config
Klio configuration handling.
klio_core.config.
KlioConfig
Klio config object representation of klio-job.yaml.
klio-job.yaml
config_dict (dict) – dictionary representation of configuration as parsed from klio-job.yaml.
job_name
Name of Klio job.
str
version
Version of Klio job.
int
pipeline_options
Apache Beam pipeline-related configuration.
KlioPipelineConfig
job_config
Job-related configuration.
KlioJobConfig
as_dict
Return a dictionary representation of the KlioConfig object.
Job-specific config representing the job_config key of klio-job.yaml.
job_config is both for any user-specific job configuration needed, as well as klio-related configuration (i.e. timeouts, metrics).
See documentation for information on available configuration.
allow_non_klio_messages
Allow this job to process free-form, non-KlioMessage messages.
bool
blocking
Wait for Dataflow job to finish before exiting.
metrics
Dictionary representing desired metrics configuration.
dict
events
Job event I/O configuration.
KlioIOConfigContainer
data
Job data I/O configuration.
config_dict (dict) – dictionary representation of job_config as parsed from klio-job.yaml.
Return a dictionary representation of the KlioJobConfig object.
Tip
Use this method to access any custom config key/value pairs defined under klio-job.yaml::job_config.
klio-job.yaml::job_config
Pipeline-specific config representing the pipeline_options key of klio-job.yaml.
Note
pipeline_options map 1:1 to options supported in Apache Beam and its runners (i.e. Dataflow). See all supported pipeline options for available options.
Any instance attribute not defined in this class but is available in Apache Beam or its runners will still be passed through when running the pipeline.
config_dict (dict) – dictionary representation of pipeline_options as parsed from klio-job.yaml.
(remaining attributes)
See all supported pipeline options for all available remaining attributes.
Return a dictionary representation of the KlioPipelineConfig object.