rhythmic-kitchen-64860
02/10/2022, 8:12 AMdatahub.ingestion.run.pipeline
the whole code is
from datahub.ingestion.run.pipeline import Pipeline
# The pipeline configuration is similar to the recipe YAML files provided to the CLI tool.
pipeline = Pipeline.create(
{
'source':{
"type":"postgres",
"config":{
"username":"postgres",
"password":"strongpass",
"database":"northwind",
"host_port":"localhost:5432",
"database_alias":"test",
"schema_pattern":{
"allow":{
"public"
}
},
"table_pattern":{
"allow":[
"test.public.region",
"test.public.suppliers"
]
}
}
},
"sink":{
"type":"datahub-rest",
"config":{
"server":"<http://localhost:8080>"
}
}
}
)
# Run the pipeline and report the results.
pipeline.run()
pipeline.pretty_print_summary()
and I want to try to make a scheduler from running that config, is it possible to do that?
thank you.little-megabyte-1074
helpful-optician-78938
02/10/2022, 10:42 PMsquare-activity-64562
02/11/2022, 12:36 PM